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

Multiple issues.

4dfe-9dac opened this issue · comments

Hello;
i truly love this but i need some help, i did a sample import but the issue is that all the things i imported went from 0,1,3,4,5,6,7,8,9,10,11.. is there anyway to get random document id?


https://github.com/complexorganizations/firestore-export-import

Just going to rewrite this in golang cause of the amount of errors.

RangeError [ERR_FS_FILE_TOO_LARGE]: File size (20954288616) is greater than possible Buffer: 2147483647 bytes
RangeError [ERR_FS_FILE_TOO_LARGE]: File size (20954288616) is greater than possible Buffer: 2147483647 bytes
    at FSReqWrap.readFileAfterStat [as oncomplete] (fs.js:264:11)

Hi @Prajwal-Koirala, how does your data structure look like?

You may need to massage the data before importing in order to generate a random id.

https://github.com/dalenguyen/firestore-backup-restore#import-data-to-firestore-auto-generate-document-id

Closed due to inactivity.