Skip to main content

diff

Detect changes to your GraphQL Schema and prevent breaking your existing applications. See the official GraphQL Inspector documentation for details.

Installation#

yarn global add @graphql-cli/diff

Usage#

graphql diff [OLD_SCHEMA] [NEW_SCHEMA]

Arguments#

argumentdescriptiondefault
OLD_SCHEMAA pointer to the old schemaextensions.diff.baseSchema property in GraphQL Config file
NEW_SCHEMAA pointer to the new schemaschema property in GraphQL Config file

Options#

optionaliasdescriptiondefault
--require-rRequire a module[]
--token-tAn access tokenundefined
--header-hSet HTTP header (--header 'Auth: Basic 123')undefined