Subgraphs Never Call Subgraphs
Products, Inventory, and Reviews stay 100% decoupled. Only the Apollo Router orchestrates joins via Query._entities and merges the final JSON.
How do independent subgraphs stitch one Product object together without ever calling each other directly?
Products, Inventory, and Reviews stay 100% decoupled. Only the Apollo Router orchestrates joins via Query._entities and merges the final JSON.
A @key(fields: "sku") directive tells the Router the exact primary key tuple needed to look up an entity in another subgraph—just like a distributed foreign key.
@requires forces a serial dependency fetch before calling the target subgraph, while @provides inlines a shared field to skip an entire subgraph roundtrip.