Graphql Federation
Introduction In our previous post, we had an overview of GraphQL, its pros and cons, an example of a GraphQL server implemented in Go, and some tinkering with it. In this post, we take the basic example a step further: how multiple GraphQL servers (also called subgraph in the context of GraphQL federation) work together with the orchestration of a central router (also called gateway). We will walk through a GraphQL federation setup that can run in our local machine, examining the subgraphs, composing a supergraph from their schema, configuring the router before running them all together and trying a query to see how they all work in tandem....