I have a firestore collection which has some documents inside it. The documents contains only collections not any fields. So when I try to get all documents inside the root coll
Adapted from Get Data with Cloud Firestore
db.collection("transactions").doc("2018-01-02").collection("education-1").get() .then(function(querySnapshot) { querySnapshot.forEach(function(doc) { // doc.data() is never undefined for query doc snapshots console.log(doc.id, " => ", doc.data()); }); }) .catch(function(error) { console.log("Error getting documents: ", error); });