-
Notifications
You must be signed in to change notification settings - Fork 103
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
Write validator for deprecated fields #14
Comments
Tweeted at Lee Byron to ask if there is an easy solution: https://twitter.com/stubailo/status/725396098584592384 |
looks like we'd just need to integrate with graphql/graphql-js#389 |
I think this is as simple as master...sdcooke:deprecated to find the fields. I'm not sure how you would want to integrate this properly (e.g. making it an optional rule) and I haven't got my head around this codebase properly yet so someone else is probably much better placed to implement it fully. Modifying the plugin directly I've got output along the lines of: "The field X.X is deprecated. [deprecation message from schema]" |
Yeah I think a custom validation rule in the options would be good, or perhaps a separate option like "validateDeprecatedFields: true" |
This has been done in #93! |
Would be good to know what the message looks like, and if it works well!
The text was updated successfully, but these errors were encountered: