Skip to content Skip to sidebar Skip to footer

How To Get Firebase Array Of Documents Ids From Colletion Where Documents Have No Data But Only Sub Collections?

I don't know if this is a bug with Firebase, or maybe it's stated in their documentation, I can't get the IDs from the collection where the document has No fields but Only Subcolle

Solution 1:

There is no way to query those parent documents, as they don't exist. The console only shows these placeholders so that you can navigate to the subcollections.

The only way I can think of to get these IDs is to do collection group query on all your invoices subcollections, and then find the parent document of each invoice.

Also see:

Post a Comment for "How To Get Firebase Array Of Documents Ids From Colletion Where Documents Have No Data But Only Sub Collections?"