node-firestore-import-export
node-firestore-import-export copied to clipboard
'where' query dont work on 0.14
const usersRef = db.collection(users).where('projectKey', '==', projectKey);
firestoreExport(usersRef).then ....
the 'where' query dont work on 0.14 but works on 0.12
Steps to reproduce the behavior
try a where query on a colletion
@JCBsystem I also want to just export the result of a query instead of the whole collection.
Let me add that this is not just a matter of going back to version 0.12 of this package but also need to go make sure that the version of firebase-admin is suitable old one too. (As firebase-admin itself has changed its APIs a lot)
In my case this is what I did:
- Go to https://www.npmjs.com/package/node-firestore-import-export and to the versions tab.
- See when
0.12.0was released (2 years ago) - Go to https://www.npmjs.com/package/firebase-admin
- Look for a version that was released approximately in the same time period (2 years ago).
I randomly picked 6.3.0 for firebase-admin and the export worked as expected.
This is clearly not ideal as firebase-admin itself does throw deprecation warnings, etc! but the export data looks fine.
It would be nice if this capability can actually be added back to the module.
Is there any specific reason why this changed @jloosli?