Reputation: 339
I want to define different schemas in different files and use them as one. The goal is to modularize schema. I've checked some of the apollo federation examples, all of them use schemas running on different servers. But there will be only one server in my case.
Upvotes: 1
Views: 235
Reputation: 84827
It's possible but federation adds complexity and overhead that is completely unnecessary in this case. Use type extensions if you want to easily split up your schema, or utilize an existing library like graphql-modules
.
Upvotes: 1