Object Star Wars::__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.

Fields

name: String!

description: String

locations: [__DirectiveLocation!]!

args: [__InputValue!]!

onOperation: Boolean!

๐Ÿ‘Ž Deprecated:

Use `locations`.

onFragment: Boolean!

๐Ÿ‘Ž Deprecated:

Use `locations`.

onField: Boolean!

๐Ÿ‘Ž Deprecated:

Use `locations`.

Uses

__Schema.directives