mercurius-js / mercurius

Implement GraphQL servers and gateways with Fastify
https://mercurius.dev/
MIT License
2.33k stars 234 forks source link

Create a tool kit for schema transformations #990

Open brainrepo opened 1 year ago

brainrepo commented 1 year ago

As explained https://github.com/mercurius-js/mercurius/pull/982#discussion_r1177497347 and https://github.com/mercurius-js/mercurius/issues/989 could be helpful to decouple all the schema transformation logic used in Mercurius to an external package, this can simplify the development of Mercurius plugins that which do schema transformations like Mercurius-auth.

This can also reduce the use of graphql-tools lib that is used in a bunch of Mercurius examples like https://github.com/mercurius-js/mercurius/blob/master/examples/executable-schema.js

@simoneb

mcollina commented 1 year ago

Absolutely!