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 |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
GetGrantResult<Grants> | PromiseLike<GetGrantResult<Grants>>