deprecated

The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values.

  • directive @deprecated(reason: String) on FIELD_DEFINITION | ENUM_VALUE
This element is not required by anyone