GetGrantFn()<Grants, Result, Root, Context, Args>
GetGrantFn<
Grants,Result,Root,Context,Args> = (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>>