-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend support for @deprecated
directive
#2081
Comments
Looks like this will be possible in an upcoming version of the GraphQL specification - see graphql/graphql-spec#805 (comment) We have to implement this in the base library first though, see webonyx/graphql-php#110 |
@deprecated
directive
@spawnia, is this now ok to implement for Lighthouse? 👀 |
It is already possible to use |
Released the updated definition with https://github.com/nuwave/lighthouse/releases/tag/v6.44.0. |
@spawnia, interestingly, when dumping the schema with I've opened #2609 to fix the issue, but please let me know if I'm missing something. |
The
@deprecated
directive currently is only allowed onFIELD_DEFINITION
andENUM_VALUE
:However any schema element could become deprecated at some point, like an obsolete/unused input field for example. Would it be possible to add the following to the supported types of the
@deprecated
directive?ARGUMENT_DEFINITION
INPUT_FIELD_DEFINITION
The text was updated successfully, but these errors were encountered: