Skip to content
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

Add validation rules to check for deprecated fields #389

Closed
stubailo opened this issue May 18, 2016 · 3 comments
Closed

Add validation rules to check for deprecated fields #389

stubailo opened this issue May 18, 2016 · 3 comments

Comments

@stubailo
Copy link

The same way this package includes a validation rule to check for unknown fields, it might be valuable to be able to check for deprecated fields as well.

@0xR
Copy link

0xR commented Sep 7, 2016

Shouldn't bee hard according to @leebyron:
https://twitter.com/leeb/status/725429815625408512

@helfer
Copy link
Contributor

helfer commented Sep 7, 2016

@0xR if you do it, make sure it's not part of specified rules, because those will make the query fail by default. It should be an optional rule that people can import.

@stubailo
Copy link
Author

stubailo commented Sep 7, 2016

Should be really easy to copy this rule and modify it a bit: https://github.com/graphql/graphql-js/blob/master/src/validation/rules/FieldsOnCorrectType.js

leebyron added a commit that referenced this issue Jan 19, 2017
This adds a utility for finding field and enum deprecation usages. The function signature is very similar to validation which should make using it easy where validation is already being used in a reporting flow.

Closes #389
leebyron added a commit that referenced this issue Jan 19, 2017
This adds a utility for finding field and enum deprecation usages. The function signature is very similar to validation which should make using it easy where validation is already being used in a reporting flow.

Closes #389
leebyron added a commit that referenced this issue Jan 19, 2017
This adds a utility for finding field and enum deprecation usages. The function signature is very similar to validation which should make using it easy where validation is already being used in a reporting flow.

Closes #389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants