Skip to main content

requiresScopes

Documents the access-scope capabilities a caller must hold to invoke this field. anyOf succeeds when the caller holds at least one of the listed capabilities; allOf requires every listed capability.

directive @requiresScopes(
anyOf: [String!]
allOf: [String!]
) on FIELD_DEFINITION

Arguments

requiresScopes.anyOf ● [String!] list scalar

Capability strings (<technical_name>:<level>). The caller must hold at least one entry.

requiresScopes.allOf ● [String!] list scalar

Capability strings (<technical_name>:<level>). The caller must hold every entry.