5. Follow-along: Query plan
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 we ran previously:

GraphQL operation
query ExampleQuery {
featuredListings {
id
title
description
costPerNight
}
recentReviews {
id
text
rating
}
}
  1. Click on the arrow beside "Response" and select "".

  2. Click "Show plan as text".

    Query plan
    QueryPlan {
    Parallel {
    Fetch(service: "listings") {
    {
    featuredListings {
    id
    title
    description
    costPerNight
    }
    }
    },
    Fetch(service: "reviews") {
    {
    recentReviews {
    id
    text
    rating
    }
    }
    },
    },
    }
Previous

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.