wundergraph / graphql-go-tools

GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.
https://graphql-api-gateway.com
MIT License
667 stars 121 forks source link

Federation Example using v2 #827

Closed IsabelFreitas-catapult closed 1 week ago

IsabelFreitas-catapult commented 1 month ago

The README.md suggests that v2 should be used, but I am finding it difficult to migrate my federated gateway from version 1 to 2, ss some of the packages, e.g. graphql, are missing from v2. Is there an example of how a federation should be implemented with v2 of the library similar to the federation example in v1 https://github.com/wundergraph/graphql-go-tools/tree/master/examples/federation

StarpTech commented 3 weeks ago

Hi @IsabelFreitas-catapult, graphql-go-tools is a low level library. What prevents you from using our GraphQL Federation Router https://cosmo-docs.wundergraph.com/router/intro ?

IsabelFreitas-catapult commented 3 weeks ago

Hey @StarpTech, thank you for getting back to me, this is the first time I am using federation and the only example I found was https://github.com/wundergraph/graphql-go-tools/blob/master/examples/federation/gateway/main.go, so that is what I followed to implement. Is there something better I should be following?

StarpTech commented 3 weeks ago

We haven't updated the examples yet, and this may take some time. In the meantime, I recommend using our router. If you encounter any limitations, we would appreciate your feedback. If you urgently need this library, please reach out for support here so we can address your concerns with priority.

StarpTech commented 1 week ago

Closing due to inactivity.