Hi,
I tried to reproduce on local environment steps described at Federation 2 quickstart - Apollo GraphQL Docs, and failed miserably.
All three options:
- ServiceList
- Generating GraphQL files with rover introspect and then providing supergraphSdl
- Managed
All of them fails with an error message like
Field “Mutation.testField” can only be defined once.
My env:
Rover 0.4.1
apollo/gateway 0.44.1
My subgraphs are in RoR and work just fine, when tested using GraphiQL
My scenario:
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?