Waeez
Waeez

Reputation: 339

Can I use apollo federation just to modularize schema on same server?

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

Answers (1)

Daniel Rearden
Daniel Rearden

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

Related Questions