@graphql-eslint/validate-against-schema alternative #456
-
Hello! 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
You can use any other tools or IDE extensions to validate your documents against the schema. |
Beta Was this translation helpful? Give feedback.
-
Hi @jgoux ! |
Beta Was this translation helpful? Give feedback.
-
Last question, seems like the rule set is covering more than we previously defined or they were breaking changes for fragments detection, I now have errors on "Unknown fragment" and "Fragment is never used". I assume this is because we didn't use any EDIT : EDIT 2 :
I'm sure the operations are loaded because if I point to another path, I have an error telling me that there is no operations for the given path. So my operations are all loaded but the fragments aren't detected. 🤔 |
Beta Was this translation helpful? Give feedback.
Hi @jgoux !
Sure. The default list was based on the default of GraphQL-JS, it's exported as
specifiedRules
variable. You can find it here:https://github.com/graphql/graphql-js/blob/main/src/validation/specifiedRules.ts#L102