Skip to main content
Version: Next (2.x)

GetGrantFn<Grants, Result, Source, Context, Args, Info>

GetGrantFn<Grants, Result, Source, Context, Args, Info> = (params, result) => GetGrantResult<Grants> | PromiseLike<GetGrantResult<Grants>>

Function that determines grants based on resolver parameters and result. Used for dynamic permission granting based on resolved data.

Type Parameters

Type Parameter

Grants extends string

Result

Source

Context

Args

Info

Parameters

ParameterType

params

ResolverParams<Source, Context, Args, Info>

result

Result

Returns

GetGrantResult<Grants> | PromiseLike<GetGrantResult<Grants>>