federation-demo
federation-demo copied to clipboard
Extend example with GraphQL microservices
It would be helpful to extend this demo with federation to a 3rd party GraphQL endpoint that doesn't implement the federation spec. I am new to Apollo and can't find any examples of how someone who knows what they are doing would properly implement federation with an existing 3rd party graphql endpoint. I feel like this federation-demo would be exponentially more educational with at least one of the microservices doing that.
Would an example use https://github.com/poetic/apollo-datasource-graphql? It seems too lightly documented and no working examples come up in google so I suspect people are not doing that.
Is the recommendation to do a microservice with apollo client like this alludes to? https://spectrum.chat/apollo/apollo-federation/remote-schemas-and-apollo-federation~74f89ac9-2623-4c51-bb87-8880a140fc27?authed=true
In my case, I need go from connecting direct to the shopify storefront graphql api to federating it. The shopify endpoint is huge and complex. I am scared of spending a ton of time doing federation to a 3rd party GraphQL endpoint the wrong way.
Just seeing a simple example of a federated 3rd party GraphQL endpoint done right would really help new users like me get going.
I am currently assessing if i can use this framework with non Apollo graphql server such as https://github.com/graphql-python/flask-graphql
any insight would be appreciated!