graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

extend breaking change detection by returning affected astnodes

Open mmuth opened this issue 3 years ago • 2 comments

When comparing two GraphQL schemas and finding breaking changes between them, I'd propose to not only describe the found changes in a textual way (myType.field changed type from String to Int), but also add the technical background in forms of affected AST nodes.

I am just implementing a validation solution that tries to detect in detail, if a GQL client is affected by a breaking change. With this simple (and backwards compatible) addition, it is possible. Thought it could be useful in general :).

mmuth avatar Feb 13 '22 00:02 mmuth

CLA Signed

The committers are authorized under a signed CLA.

  • :white_check_mark: Matthias Muth (ee62926bcf03d7d05ccb227cb7a67338ebab423d)

The latest changes of this PR are available on NPM as graphql@16.3.0-canary.pr.3499.ee62926bcf03d7d05ccb227cb7a67338ebab423d Note: no gurantees provided so please use your own discretion.

Also you can depend on latest version built from this PR: npm install --save graphql@canary-pr-3499

github-actions[bot] avatar Feb 14 '22 16:02 github-actions[bot]