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/diff
npm i -g @graphql-cli/diff
#
Usagegraphql diff [OLD_SCHEMA] [NEW_SCHEMA]
#
Argumentsargument | 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 |
#
Optionsoption | alias | description | default |
---|---|---|---|
--require | -r | Require a module | [] |
--token | -t | An access token | undefined |
--header | -h | Set HTTP header (--header 'Auth: Basic 123' ) | undefined |