firebase.firestore.collection.doc.get code example
Example 1: collection get firesotre
async getMarker() {
const snapshot = await firebase.firestore().collection('events').get()
return snapshot.docs.map(doc => doc.data());
}
Example 2: firebase get doc collection
db.collection("restaurants").doc("123").collection("reviews").get().then(querySnapshot => {
querySnapshot.forEach(doc => {
console.log(doc.id, " => ", doc.data());
});
});