Firebase Firestore Guides show how to iterate documents in a collection snapshot with forEach:
forEach
db.collection(\"cities\").get().then(function(que
The answer is:
querySnapshot.docs.map(function(doc) { # do something })
The Reference page for Firestore reveals the docs property on the snapshot.
docs
docs non-null Array of non-null firebase.firestore.DocumentSnapshot An array of all the documents in the QuerySnapshot.
docs non-null Array of non-null firebase.firestore.DocumentSnapshot
An array of all the documents in the QuerySnapshot.