I tried to reproduce on local environment steps described at Federation quickstart - Federation - Apollo GraphQL Docs, and failed miserably.
All three options:
- Generating GraphQL files with rover introspect and then providing supergraphSdl
All of them fails with an error message like
Field “Mutation.testField” can only be defined once.
My subgraphs are in RoR and work just fine, when tested using GraphiQL
Create two federated subgraphs.
Use Apollo Server as a gateway.
The error message is pretty easy to debug.
rover subgraph introspect returns Mutation and Query separately.
Do I miss some kind of undocumented switch?
Why do Rover and Cloud don’t support merging of subgraph definitions?
The documentation describes it as it should work with Apollo Federation V1.
I tried V2, and it works with cloud and serviceList without any issues.
I didn’t try supergraphSdl solution, due to the rover merge issues described above.
What’s the planned V2 release roadmap?