Replies: 1 comment 2 replies
-
@kamilkisiela do you know if this is possible to display the failed file document that triggered this error? |
Beta Was this translation helpful? Give feedback.
2 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
When validating my query documents against my server schema, there is no easy way to see which one of the failed .graphql contains/trigger the error. Is there any option or way to do it?
graphql-inspector validate -d --noStrictFragments "./libraries/**/*.graphql" https://<HOST>/api GraphQLError [Object]: Syntax Error: Expected Name, found "}". at syntaxError (/usr/local/lib/node_modules/graphql/error/syntaxError.js:15:10) at Parser.expectToken (/usr/local/lib/node_modules/graphql/language/parser.js:1413:40) at Parser.parseName (/usr/local/lib/node_modules/graphql/language/parser.js:98:22) at Parser.parseField (/usr/local/lib/node_modules/graphql/language/parser.js:295:28) at Parser.parseSelection (/usr/local/lib/node_modules/graphql/language/parser.js:284:81) at Parser.many (/usr/local/lib/node_modules/graphql/language/parser.js:1523:26) at Parser.parseSelectionSet (/usr/local/lib/node_modules/graphql/language/parser.js:271:24) at Parser.parseField (/usr/local/lib/node_modules/graphql/language/parser.js:312:68) at Parser.parseSelection (/usr/local/lib/node_modules/graphql/language/parser.js:284:81) at Parser.many (/usr/local/lib/node_modules/graphql/language/parser.js:1523:26) { locations: [ { line: 11, column: 13 } ]
Beta Was this translation helpful? Give feedback.
All reactions