-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
Shouldn't bee hard according to @leebyron: |
@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. |
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 |
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
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
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
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.
The text was updated successfully, but these errors were encountered: