graphql-query-rewriter / core

Seamlessly turn breaking GraphQL changes into non-breaking changes
https://graphql-query-rewriter.github.io/core
MIT License
407 stars 15 forks source link

New Generic Field Rewriter & Custom Rewriter #51

Open AndresPrez opened 2 years ago

AndresPrez commented 2 years ago

@chanind Ive added a new Rewriter: FieldRewriter inspired by the ScalarFieldToObjectFieldRewriter and a CustomRewriter to allow custom implementation of the Rewriter public methods.

PR should be backwards compatible and comes with unit tests.

New functionalities:

chanind commented 2 years ago

Apologies for the delay getting this reviewed, I'm traveling this week so it might take a few more days before I can get this reviewed and merged. I'll aim to do so by early next week at the latest. Thank you so much for submitting this! It looks like a great improvement.