We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given an exported data as follows:
const data = { collection1: { docId: { refArray: [ {path:'collection1/document1-ref'}, {path:'collection2/document2-ref'} ] } } }
the refArray field gets parsed into 'collection2/document2-ref instead of an array of strings.
refArray
'collection2/document2-ref
This is because the field is completely overridden while looping on the original array.
firestore-backup-restore/src/export.ts
Lines 82 to 84 in 62385dd
The appropriate way of mapping the array values can be seen in import.ts:
import.ts
firestore-backup-restore/src/import.ts
Line 173 in 62385dd
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given an exported data as follows:
the
refArray
field gets parsed into'collection2/document2-ref
instead of an array of strings.This is because the field is completely overridden while looping on the original array.
firestore-backup-restore/src/export.ts
Lines 82 to 84 in 62385dd
The appropriate way of mapping the array values can be seen in
import.ts
:firestore-backup-restore/src/import.ts
Line 173 in 62385dd
The text was updated successfully, but these errors were encountered: