dalenguyen / firestore-backup-restore

NPM package for backup and restore Firebase Firestore

Home Page:https://firebaseopensource.com/projects/dalenguyen/firestore-backup-restore/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no subcollection export if document has no field

younes0 opened this issue · comments

if document contains a subcollection but no fields, export method will ignore the document.

HI @younes0, how does the name look like? Is it italic?

Hello @dalenguyen
exactly, it is italic on the firestore UI

Yeah, here a thread from Firebase guy.

`The document IDs for these are shown as italicized ids in the UI: these documents do not actually exist, but we show them so that you can navigate to the sub collections.

Since there is no document anymore, the document itself will not show up in query results.`

You add a dummy field to bring it back to life.

https://stackoverflow.com/a/48138953/3103548

@dalenguyen thank you. it's a surprising behavior.