introspect
Dumps an introspection file based on a schema. See the official GraphQL Inspector documentation for details.
#
Installation- yarn
- npm
yarn global add @graphql-cli/introspect
npm i -g @graphql-cli/introspect
#
Usagegraphql introspect [SCHEMA]
#
Argumentsargument | description | default |
---|---|---|
SCHEMA | A pointer to a schema | schema property in GraphQL Config file |
#
Optionsoption | alias | description | default |
---|---|---|---|
--write | -w | Overwrite the output | graphql.schema.json |
--require | -r | Require a module | [] |
--token | -t | An access token | undefined |
--header | -h | Set HTTP header (--header 'Auth: Basic 123' ) | undefined |