mercurius-js / mercurius

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

How to create a dynamic GraphQL schema #894

Closed VojislavVlasic closed 2 years ago

VojislavVlasic commented 2 years ago

Hello! We're creating a new GraphQL API and we're researching how to improve the performance of our previous API. We have a scenario where each user can have his own types, I was wondering if there is some way to create and load those types, based on the request headers? Thank you!

mcollina commented 2 years ago

This would be an interesting use case to work on... but Mercurius has no specific utility for you :(. A dynamic schema for each user is outside of the scope of this project.