Skip to content Skip to sidebar Skip to footer

Find All Subcollections Of Firestore Doc Programmatically

Is there any way to programmatically access the subcollections in a document without explicitly knowing their name? I'm essentially looking for a function similar to firestore().g

Solution 1:

I'm an idiot.

db
  .collection("collection")
  .doc("document")
  .getCollections()
  .then(collections => {
      //do stuff
  });

Post a Comment for "Find All Subcollections Of Firestore Doc Programmatically"