# Firestore data model

<https://firebase.google.com/docs/firestore/data-model>

* [How to Structure Your Data | Get to Know Cloud Firestore #5](https://youtu.be/haMOUb3KVSo)
* [How do queries work in Cloud Firestore? | Get to Know Cloud Firestore #2](https://youtu.be/Ofux_4c94FI)
* [Maps, Arrays and Subcollections, Oh My! | Get to Know Cloud Firestore #4](https://youtu.be/o7d5Zeic63s)
* [Understanding Collection Group Queries in Cloud Firestore](https://firebase.googleblog.com/2019/06/understanding-collection-group-queries.html)
* [how to add sub collection to a document in firestore? \[closed\]](https://stackoverflow.com/questions/48873465/how-to-add-sub-collection-to-a-document-in-firestore/48873628)
* [Firestore Sub-Collections](https://howtofirebase.com/firestore-sub-collections-2e23c998540d)
* [Best Practices: Arrays in Firebase](https://firebase.googleblog.com/2014/04/best-practices-arrays-in-firebase.html)


---

# 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://textav.gitbook.io/firebase-react-notes/firestore/firestore-data-model.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.
