Apollo Federation @requires and @provides: cross-subgraph entity resolution
The Apollo Router uses @requires and @provides directives to compose cross-subgraph query plans, fetching providing fields before requiring resolvers.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
The Apollo Router uses @requires and @provides directives to compose cross-subgraph query plans, fetching providing fields before requiring resolvers.
Learn how to stitch multiple GraphQL services into one unified API with Apollo Federation. Follow a step‑by‑step guide to set up subgraphs, configure the gateway, validate entity resolution, and tune performance with caching.
Stop letting slow resolvers block your entire UI. Learn how to use the @defer directive in Apollo GraphQL to stream partial results and improve perceived performance.
Learn how to compose multiple GraphQL services with Apollo Federation, define shared entities, validate schemas, and deploy a gateway that stitches a supergraph for modular, team‑agnostic development.
Entity key resolution ambiguity Apollo Federation allows entities to define multiple @key directives, each declaring a different set of fields that can uniquely identify an entity across subgraphs. The gateway's query planner chooses which key to use based on the fields requested in the incoming operation, but the selection algorithm lacks a documented prior