apollographql / federation

🌐  Build and scale a single data graph across multiple services with Apollo's federation gateway.
https://apollographql.com/docs/federation/
Other
666 stars 251 forks source link

Federation Enum/Union type cross services #2210

Open lielran opened 4 years ago

lielran commented 4 years ago

as mention in the documentation enum and union must be exactly the same across all services
I found it almost impossible to maintain in a micro-services environment (IMO what is federation all about).

changing a simple enums/union in the current, require to sync the deployment of 10-100+ microservices. and if something goes wrong the gateway will fail to start(😱 )

I thought that the downstream services could extend an enum or a union by adding new values to it. does anyone know why the core team didn't take this approach?

glasser commented 2 years ago

Moving this to the federation repository. FWIW I'm not an expert but I believe this is fixed in Federation 2.