> For the complete documentation index, see [llms.txt](https://textav.gitbook.io/firebase-react-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://textav.gitbook.io/firebase-react-notes/firestore/firestore-read.md).

# Firestore - read

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

```javascript
db.collection("transcripts").get().then((querySnapshot) => {
  querySnapshot.forEach((doc) => {
      console.log(`${doc.id} => ${JSON.stringify(doc.data())}`);
  });
});
```

## Listen for realtime updates

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