Skip to main content

deprecated

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

directive @deprecated(
reason: String = "No longer supported"
) on
| FIELD_DEFINITION
| ENUM_VALUE
| ARGUMENT_DEFINITION
| INPUT_FIELD_DEFINITION

Arguments

deprecated.reason ● String scalar

Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in Markdown.