-
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
Validation rules: mismatch between graphql-js and spec #3286
Comments
Renaming or changing validation rules is most likely going to be breaking. Given you just released https://github.com/graphql/graphql-js/releases/tag/v16.0.0-rc.3, perhaps now is not a good time to start working on this? |
I've done the mapping (as part of writing this article concerning generic error codes). @IvanGoncharov Is this what you had in mind? The table below contains 3 colums:
In the Spec section column, it may contain these extra strings:
|
I'm having this error in my code. I saw that in the source code, it will be fixed in the next release 17.0.0. Has anyone had this error? graphql-js/src/execution/execute.ts Line 868 in da57238
|
Context #3282 by @spawnia
It looks like we have the following mismatch between spec and graphql-js.
For example, type names are checked using this rule:
https://github.com/graphql/graphql-js/blob/main/src/validation/rules/KnownTypeNamesRule.ts
But in spec, there is only a rule for checking type names on fragments and I couldn't find any rule for checking types on variable fragments.
Also, we have a significant mismatch in names and descriptions of rules.
So at some point, we need to do an audit of both spec and graphql-js to fix as many discrepancies as we can.
We need to focus on query validation first and handle SDL validation separately since it's not well documented in the spec.
The text was updated successfully, but these errors were encountered: