Anchor to __Directive
object__Directive
A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.
Anchor to FieldsFields
- Anchor to argsargs•[__Input
Value!]! non-null - Anchor to descriptiondescription•String
- Anchor to isRepeatableis•Boolean
Repeatable - Anchor to locationslocations•[__Directive
Location!]! non-null - Anchor to namename•String!non-null
Deprecated fields
- Anchor to onFieldon•Boolean!
Field non-nullDeprecated - Anchor to onFragmenton•Boolean!
Fragment non-nullDeprecated - Anchor to onOperationon•Boolean!
Operation non-nullDeprecated
Was this section helpful?