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.

link GraphQL Schema definition

1type __Directive {
2
3args: [__InputValue!]!
4
5description: String
6
7locations: [__DirectiveLocation!]!
8
9name: String!
10
11onField: Boolean! @deprecated( reason: "Use `locations`." )
12
13onFragment: Boolean! @deprecated( reason: "Use `locations`." )
14
15onOperation: Boolean! @deprecated( reason: "Use `locations`." )
16
17}