Advanced GraphQL #federation #subgraph #supergraph #apollo

GraphQL Federation Vocabulary

5 exercises — master federation vocabulary: subgraphs and supergraphs, Apollo Federation, the @key directive, entity extension across subgraphs, schema stitching vs federation, and query plan representations.

0 / 5 completed
GraphQL Federation vocabulary quick reference
  • Subgraph — a team-owned GraphQL service with a partial schema
  • Supergraph — the composed, unified GraphQL schema merging all subgraphs
  • Federation gateway / router — routes and composes queries across subgraphs
  • @key directive — declares an entity's primary key; enables cross-subgraph entity resolution
  • Entity extension — a subgraph adding fields to an entity defined in another subgraph
  • Representation — minimal object ({__typename, @key fields}) sent to an extending subgraph
  • Schema stitching — older, manual approach vs Federation's declarative, spec-driven approach
1 / 5

What is GraphQL Federation, and what problem does it solve compared to a single monolithic GraphQL schema?