firebasegoogle-cloud-firestore

Export json from Firestore


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.


Solution

  • There is not, you'd need to come up with your own process such as querying a collection and looping over everything.

    Update

    As of August 7th, 2018, we do have a managed export system that allows you to dump your data into a GCS bucket. While this isn't JSON, it is a format that is the same as Cloud Datastore uses, so BigQuery understands it. This means you can then import it into BigQuery.