API / Apollo Gateway Interview questions
Explain the execution flow of a federated query spanning three subgraphs?
Take a query asking for a product's name, its reviews, and each reviewer's display name — with Products, Reviews, and Users each owning a different piece.
Note that the call to Users happens as a single batched _entities request covering every reviewer needed for that query, not one call per review. Only after all three subgraph calls resolve does the gateway assemble the final tree, matching exactly the shape the client originally asked for.
More Related questions...