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
error Error:
Unable to find any GraphQL type definitions for the following pointers:
- ./schema-old.graphql
at prepareResult (/Users/simon/co/acuity/hasura/node_modules/@graphql-tools/load/cjs/load-typedefs.js:95:15)
at loadTypedefs (/Users/simon/co/acuity/hasura/node_modules/@graphql-tools/load/cjs/load-typedefs.js:44:20)
at async loadSchema (/Users/simon/co/acuity/hasura/node_modules/@graphql-tools/load/cjs/schema.js:15:21)
at async Object.handler (/Users/simon/co/acuity/hasura/node_modules/@graphql-inspector/diff-command/cjs/index.js:95:35)
Maybe I'm mis-understanding but I'd expect to be able to compare two introspection query results but maybe I need to combine something about collecting .graphql queries & mutations as well?
Maybe my issue is different and I should maybe open a separate issue (I poked at some code underneath but didn't get that far).
I will say for the issue you mention about extensions in particular, it doesn't surprise me the extension is needed given there's a bunch of different schema sources eg json, graphql, endpoints, git, and it'd be harder to differentiate without the extension? At a minimum an error could be provided though if it's not a recognized format?
The document path is expected to be in quotes. This is documented in validate command, but I think this also applies to other command, because I also have trouble to execute coverage without the quoted document path. Either the CLI should expect unquoted document path, or the docs should be updated for each command.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
The
diff
command fails if path doesn't havegraphql
extensionTo Reproduce Steps to reproduce the behavior:
test-schema
graphql-inspector diff ./test-schema ./test-schema
Expected behavior
It should work
Environment:
@graphql-inspector/cli
:^3.4.0
graphql
: ^16.6.0Additional context
The text was updated successfully, but these errors were encountered: