As we can download json file at Firebase RTDB console, are there any way to export json file of Firestore collection/document data?
One of my main objectives is to compare data before/after updating document.
Note: Cloud Firestore supports a variety of data types for values: boolean, number, string, geo point, binary blob, and timestamp. You can also use arrays or nested objects, called maps, to structure data within a document. You may notice that documents look a lot like JSON. In fact, they basically are.
It's possible! Run from CLI firebase firestore:indexes inside your firebase project folder. Providing you have indexes already setup and logged into Firebase via the CLI too, you'll get a formatted JSON output for you to copy. Exported indexes can be re imported using firebase deploy --only firestore:indexes .
I just wrote a backup and restore for Firestore. You can have a try on my GitHub.
https://github.com/dalenguyen/firestore-backup-restore
Thanks,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With