How to use fs-bq-import-collection with sub collections #1500
moritzopitz
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to make an export of existing documents from a Firestore sub collection to BigQuery.
I already successfully used the script to do this for a collection, but with the sub collection I am getting an error when I try:
npx @firebaseextensions/fs-bq-import-collection --non-interactive -P acb-prod -s customers/{customerId}/calls -d exp_firebase_extension_eu -t client_calls -l europe-west1 -b 1000 -u false -e false -q false
When I check the README, I can see that I can not use wildcards for the collection path and I should use a collectionGroup query instead. How would the right syntax be for this? I dont understand how I can parse my subcollection without using wildcards.
Edit: it seems by just passing "calls" as collectionGroup, every collection and subcollection with the name "calls" gets imported, no matter on which level it is. Is that correct?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions