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.
HI,
Sorry to ask very basic question, but I am not sure how to use this script..
I put it inside a new folder in my desktop, then I open a terminal (moving into the desktop folder), then I run
npm install firebase-admin
then I runnode firestore2json.js
but without changing anything in the script... 1/ is it the good method ? - 2/I am sure I have to change something inside the code to access to my own database, but I do not know what to change ? I have download the new private key from firebase but also do not know how to use it.. Thanks for help