Interface IBaseActionContext
interface IBaseActionContext { requestId: string; user: CurrentUser; isGranted( action: string, actionScopes?: ActionScopes | ActionScopesArray, ): boolean; validateAccess( action: string, scopes?: ActionScopes | ActionScopesArray, ): void;} Properties
requestId
requestId: string
user
Methods
isGranted
isGranted( action: string, actionScopes?: ActionScopes | ActionScopesArray,): boolean Parameters
- action: string
Optional
actionScopes: ActionScopes | ActionScopesArray
Returns boolean
validateAccess
validateAccess(action: string, scopes?: ActionScopes | ActionScopesArray): void Parameters
- action: string
Optional
scopes: ActionScopes | ActionScopesArray
Returns void
GraphQL base action context Used for mutations and queries