diff
Detect changes to your GraphQL Schema and prevent breaking your existing applications. See the official GraphQL Inspector documentation for details.
Installation#
- yarn
- npm
yarn global add @graphql-cli/diffnpm i -g @graphql-cli/diffUsage#
graphql diff [OLD_SCHEMA] [NEW_SCHEMA]Arguments#
| argument | description | default |
|---|---|---|
OLD_SCHEMA | A pointer to the old schema | extensions.diff.baseSchema property in GraphQL Config file |
NEW_SCHEMA | A pointer to the new schema | schema property in GraphQL Config file |
Options#
| option | alias | description | default |
|---|---|---|---|
--require | -r | Require a module | [] |
--token | -t | An access token | undefined |
--header | -h | Set HTTP header (--header 'Auth: Basic 123') | undefined |