GraphQL Tools Schema Stitching Support
See original GitHub issuehttps://www.graphql-tools.com/docs/stitch-directives-sdl
I’m not quite sure how hard it will be to implement GraphQL Tools Schema Stitching (better support than Federation now and not “commercialized”) to a Nest.js GraphQL project.
I’m able to get it somewhat working by using transformSchema
, however, since @nestjs/graphql
is tied to ApolloServer, I’m unable to cleanly do schema refreshing.
Is there a way to opt-out of ApolloServer and use my own implementation while utilizing nest’s ecosystem & schema generation?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kamilmysliwiec It seems as if it’s 99% there? All that’s really needed is to just generate a schema and then one can apply it to the underlying server of their choice (express/fastify based).
I.E.
type-graphql
’s entry point isbuildSchema
and you just get a schema and serve it up how you want. Ideally there’s abuildSchema
andbuildTypeDefsAndResolvers
type functionality.Being so married to a corporate single server eliminates a lot of potential with community driven OSS around graphql. I.E. https://the-guild.dev/ (envelope, graphql-helix, graphql over WS, etc).
All that’s needed is schema & type definition creation which is already built for ApolloServer.
@kamilmysliwiec Another library that’d benefit from not being tied to ApolloServer.
https://github.com/Davide-Gheri/nestjs-mercurius (nest integration… uses this library but super hacked in)
https://github.com/mercurius-js/mercurius (cool GraphQL fastify implementation with extra features & arguably better federation implementation than Apollo)