3. Follow-along: Querying with Apollo Sandbox
1m

Querying with Apollo Sandbox

Apollo Sandbox is an environment that gives you the ability to explore a API. It's a special mode of Apollo Studio that helps with development. Sandbox loads a running 's schema. Like the one we're about to explore!

Head over to : https://studio.apollographql.com/sandbox/explorer

Connect to the API by pasting this link to the top left (right next to "Sandbox")

https://comet-cruises-api.herokuapp.com/
Task!

Let's check out the Explorer together!

🎯 Goal: Build a for this mockup:

Mockup of the homepage

  1. Add the Query from left sidebar (click on + icon). This will start to build our in the middle section.

  2. Rename query Query to a better : query HomepageLocations

    Tip: We use PascalCase for ! Clear operation names will be helpful when we analyze our metrics later on.

  3. Add the locations .

    query HomepageLocations {
    locations {
    }
    }
  4. Add the name .

    query HomepageLocations {
    locations {
    name
    }
    }
  5. Run the !

Let's finish the rest of it in the next lesson.

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.