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/introspectnpm i -g @graphql-cli/introspectUsage#
graphql introspect [SCHEMA]Arguments#
| argument | description | default |
|---|---|---|
SCHEMA | A pointer to a schema | schema property in GraphQL Config file |
Options#
| option | 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 |