Providing Documents
GraphQL Inspector - There are a few ways of providing operations and fragments (documents in general).
There are a few ways of providing operations and fragments (documents in general).
JavaScript And TypeScript Files
GraphQL Inspector supports glob pattern.
Given the example above, Inspector will search every file that matches that pattern and extract
operations and fragments wrapped with gql or graphql template literal tag.
Supported extensions: .ts, .tsx, .js and .jsx.
GraphQL Files
GraphQL Inspector supports glob pattern.
Given the example above, Inspector will search every file that matches that pattern and extract operations and fragments.
Supported extensions: .graphql, .graphqls and .gql.
Programmatic API
If you are using programmatic API, you might find @graphql-tools/load package useful for loading
documents. Learn more here.