-
Notifications
You must be signed in to change notification settings - Fork 493
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
@deprecated directive on input
#204
Comments
Also found that it's not supported on Field Args either, eg: type User {
properties(
limit: int = 20 @deprecated(reason: "limit is no longer supported, always returns all")
): [Property!]!
}
|
I've started work in a new parser that should support all of these and a bunch of other new features like schema extensions. It's up to Tony if that lands here, but feel free to have a look. |
Looks interesting @vektah Thanks for sharing. |
At the time I started writing gqlgen this package was unmaintained, and I wanted to take it in a very different direction (the whole execution phase & json marshalling is generated out as go code). I can't realistically expect anyone to merge a 5k+ line PR to the core request executor. I still think a heap of work can be shared, bringing the whole go graphql ecosystem forward, like getting a robust parser & validator out independent of the server. |
This is working its way into the spec graphql/graphql-spec#525 |
Since 498fe39 we can add
@deprecated
to types like so:However the
@deprecated
directive throws an error oninput
:The text was updated successfully, but these errors were encountered: