question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL Tools Schema Stitching Support

See original GitHub issue

https://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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcommented, Jun 29, 2021

@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 is buildSchema and you just get a schema and serve it up how you want. Ideally there’s a buildSchema and buildTypeDefsAndResolvers 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.

0reactions
jcommented, Jun 30, 2021

@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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found