Skip to content

deprecated ​

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

graphql
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

Released under the MIT License.