Skip to content

pipefy/graphql-schema-compatibility-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

graphql-schema-compatibility-checker

A simple tool that checks if GraphQL schema is backward compatible.

Installation

Install ammonite

$ sudo curl -L -o /usr/local/bin/amm https://github.com/lihaoyi/Ammonite/releases/download/2.1.4/2.12-2.1.4 && sudo chmod +x /usr/local/bin/amm  

Usage

Check two schemas using retrospection query

$ ./check-schema http://gdom.graphene-python.org/graphql http://gdom.graphene-python.org/graphql

Check two local schemas in IDL format

$ ./check-schema ./test/old-schema.graphql ./test/new-schema.graphql

Expected output:

 * Field `id` was removed from `Repository` type

About

Checks if version of GraphQL schema is backward compatible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%