How to Federate Graphs in StepZen
Assembling GraphQL Backends into a Single Graph with @materializer
StepZen creates a GraphQL endpoint by assembling subgraphs. When doing federation, each subgraph represents a GraphQL backend. In StepZen, you import the GraphQL backends using the stepzen import graphql
command, and then stitch them together using StepZen's @materializer
directive.
Demonstrated here by bringing a customer subgraph, and an order subgraph together.
See also Building Graphs and Graphs-of-Graphs to learn how StepZen is built on the concept of graph-of-subgraphs.