Skip to main content

deprecated

Marks the field, argument, input field or enum value as deprecated

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

Arguments​

deprecated.reason ● String! non-null scalar​

The reason for the deprecation