Skip to main content

Directives

deprecated

Marks an element of a GraphQL schema as no longer supported.

directive @deprecated(
reason: String = "No longer supported"
)

doc

No description

directive @doc(
category: String!
)

include

Directs the executor to include this field or fragment only when the if argument is true.

directive @include(
if: Boolean!
)

skip

Directs the executor to skip this field or fragment when the if argument is true.

directive @skip(
if: Boolean!
)