1m
Query plan
Test your understanding
Using the , the understands which fields belong to which subgraph and creates a query plan. It excecutes the plan and sends smaller operations to the respective that can resolve the fields they're responsible for.
Drag items from this box to the blanks above
subgraphs
client
supergraph plan
router
resolvers
GraphOS
supergraph
subgraph schema
supergraph schema
Follow-along: Examining a query plan
This is the operation we ran previously:
GraphQL operation
query ExampleQuery {featuredListings {idtitledescriptioncostPerNight}recentReviews {idtextrating}}
Click on the arrow beside "Response" and select "Query Plan".
Click "Show plan as text".
Query planQueryPlan {Parallel {Fetch(service: "listings") {{featuredListings {idtitledescriptioncostPerNight}}},Fetch(service: "reviews") {{recentReviews {idtextrating}}},},}
Share your questions and comments about this lesson
Your feedback helps us improve! If you're stuck or confused, let us know and we'll help you out. All comments are public and must follow the Apollo Code of Conduct. Note that comments that have been resolved or addressed may be removed.
You'll need a GitHub account to post below. Don't have one? Post in our Odyssey forum instead.