Compares schemas and finds breaking or dangerous changes.
Run the following command:
graphql-inspector diff OLD_SCHEMA NEW_SCHEMA
-r, --require <s...>- require modules
-t, --token <s>- an access token
A list of all differences between two schemas. GraphQL Inspector defines three kinds of changes:
- Non breaking change
- Dangerous Change
- Breaking change
When there's at least one breaking change, process fails, otherwise it succeeds.
Compare your local schema against a remote server:
graphql-inspector diff https://api.com/graphql schema.graphql
Compare your local schema against a schema on a master branch (github):
graphql-inspector diff github:user/repo#master:schema.graphql schema.graphql