(...).collection(...).doc(...).listCollections is not a function #6240
Unanswered
edulennert
asked this question in
Q&A
Replies: 1 comment
-
There's a good stackoverflow on that one, I've needed the same. listCollections is a firebase-admin-sdk API I think, which is why it's not accessible here in the client SDKs https://stackoverflow.com/questions/48258632/fetching-all-collections-in-firestore I think this is a good take on the 3 different ways to handle it (with first option being "know the collection names ahead of time), 2 being use cloud function to access admin API and 3 being to keep the names of collections in say an array field https://medium.com/firebase-tips-tricks/how-to-list-all-subcollections-of-a-cloud-firestore-document-17f2bb80a166 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys!
I need a way to list collections that are inside a document. Is there a way to do that usindo react-native-firebase??
Navigating through the firestore documentation I found a function that does exactly that, but it retrieves
.listCollections is not a function
when I try it on rn firebase.I don't know if it's a feature that needs to be implemented or a issue of the library. Is there a workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions