Firestore sub-collections with nonexistent parents are not showing in emulator #273
Closed
Description
opened on May 25, 2020
[REQUIRED] Environment info
firebase-tools:
8.4.0
Platform:
macOS 10.15.4
[REQUIRED] Test case
I've found that when having nested collections in Firestore, they don't display on the web interface of the emulator unless parent documents contain data.
[REQUIRED] Steps to reproduce
// create some data in a nested collection without data in the document
db.collection('stripe')
.doc('6tSfMgrOCEOi3kj0IHRivd0ZCgX2')
.collection('subscriptions')
.doc('sub_123456789').set({
status: "active"
})
[REQUIRED] Expected behavior
On the production version of the data viewer, it displays empty documents in italics (to designate that there is no fields but sub-collections exist). Image below.
[REQUIRED] Actual behavior
There is nothing to display on the UI and I cannot access child collections. If I set some dummy data on a document, the row will appear.
Metadata
Assignees
Labels
No labels
Activity