Firestore - read

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

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

Last updated