# Write your first query

We'll be using Firestore. Just follow the instructions below.

### Instructions

1. Open up [the Firestore docs](https://firebase.google.com/docs/firestore/query-data/get-data) in a new browser tab.
2. Scan the docs, especially the "Get a document" section.
3. Open another tab and go to Glitch.com.
4. Create a Glitch.com account and click around a bit to get comfortable.
5. Visit the Glitch project for this challenge, [coordinated-freighter](https://glitch.com/edit/#!/coordinated-freighter)
6. Look over the code in `index.html` and read the comments.
7. Try to query the `star-wars-people` collection inside the `getPeople()` function

## Check out your results

1. Click the "Show" button on your glitch to pop open a preview of your page.
2. [Open Chrome's DevTools](https://developer.chrome.com/devtools).
3. Navigate to the [Console](https://developers.google.com/web/tools/chrome-devtools/console/?utm_source=dcc\&utm_medium=redirect\&utm_campaign=2016q3) tab in DevTools to view your JavaScript output

### If you get stuck...

1. Reference [the Firestore docs](https://firebase.google.com/docs/firestore/query-data/get-data) as necessary
2. Check out the solution in `complete.html` and watch the solution video!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.fullstackfirebase.com/introduction/write-your-first-query.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
