You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 } ]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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