REST Multi-Endpoint Waterfall
2 Round Trips
Returned Payload Fields (Amber = Over-Fetched Waste)
68% wasted
How does a GraphQL server turn a query string into an exact JSON payload without over-fetching?
Scalar leaves like name or email don't need custom code—the engine falls back to the default trivial resolver (parent) => parent[fieldName].
Parent-to-child resolution is sequential (child needs parent), while sibling fields fire concurrently via Promise.all.
The parsed AST is type-checked against the SDL schema first—unknown fields like user.ssn fail at Step 1 before touching any database.