firestore-backup-restore icon indicating copy to clipboard operation
firestore-backup-restore copied to clipboard

Re-parent a collection and all its sub collections

Open devth opened this issue 2 years ago • 1 comments

Amazing project! I'm trying to figure out if this project supports this use case:

Export a collection group, e.g. types/{type}/networks/{network} And import it at a new path, e.g. networks/{network}

Including all sub-collections under types/{type}/networks/{network}. Any guidance would be appreciated 🙏🏻

devth avatar Aug 16 '23 13:08 devth

If you use the backupFromDoc it will return all the subcollections of specific documents like your use case is asking for.

mercpls avatar Sep 25 '23 15:09 mercpls