Firebase Firestore Guides shows how to iterate documents in a collection snapshot using forEach :
db.collection("cities").get().then(function(querySnapshot) { querySnapshot.forEach(function(doc) { console.log(doc.id, " => ", doc.data()); }); });
I assumed that it will support map , but it is not. How to display a snapshot?
source share