Skip to main content

@deprecated

Directive

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​

ArgumentTypeDefaultDescription
reasonString"No longer supported"The reason for the deprecation

Locations​

  • FIELD_DEFINITION
  • ARGUMENT_DEFINITION
  • ENUM_VALUE
  • INPUT_FIELD_DEFINITION