DEV Community

Discussion on: Getting Started with Apollo Federation and Gateway

Collapse
 
robdwaller profile image
Rob Waller

Nice article, I have a question.

What happens if I have two services which persist the same type? Is there a way to manage this? 😂🤦‍♂️

My understanding from your article and other reading is types should be persisted by a singular service?

Collapse
 
mandiwise profile image
Mandi Wise

You can definitely do this Apollo Federation, but how you handle it will depend on what kind of type you're dealing with (e.g. object, interface, custom scalar...). The Apollo docs have a good explanation of how to deal with each different type: apollographql.com/docs/apollo-serv...

Collapse
 
robdwaller profile image
Rob Waller

Ok thanks will give that a read. 👍