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 collection i got the snapshot size as zero. Is there any way to get the documents which has no fields but has some collection inside it?
My firestore structure is
You can also see that the id of documents is shown in italics
code for retrieving data
db.collection("transactions").get()
.then(snapshot => {
console.log(snapshot.size); returns zero
})