The origin of this gist: https://blog.cloudboost.io/copy-export-a-cloud-firestore-database-388cde99259b
The schema is for example only, it's must be modified according to the firestore database.
Quoting Bruno Braga
"this schema is how your DB is organized in a tree structure. You don't have to care about the Documents but you do need to inform the name of your collections and any subcollections, in this case we have two collections called users and groups, the all have their documents, but the collection users has its own subcollections, friends and groups, which again have their own subcollection, messages."
For any doubt, add it here, but let me know by email that the question has been added, I usually go unnoticed when someone comments here.
Sorry to ask some very naive question. I am new to Firestore (and GCP actually). I need to copy some collections from Firestore to Cloud Storage or Big Query. I am guessing I can modify these scripts for that purpose but have no idea what to do with clearly:
1> Where is the export_db.js script copying data to? It has "fs.writeFileSync" in the end but not so sure where it is writing to.
2> import_db.js script is writing back to Firestore?
Again sorry to ask very basic questions. Thanks!