Used to authorize access to a given query, mutation, or field based on permissions set in the user token. for example, to restrict a field foo to superadmins, add foo: Foo @scopes(scopes: ["superadmin"]) Permission strings must EXACTLY match the permission objects defined in functional-permissions-lib. If the user does not have all required permissions, the field will contain null and the errors list will have an "access denied" error message.

link GraphQL Schema definition

1directive @scopes(scopes: [String!]!, require: ScopeRequirement) on QUERY | MUTATION | FIELD | FIELD_DEFINITION | INPUT_FIELD_DEFINITION

link Required by

This element is not required by anyone