从Firestore导出json [英] Export json from Firestore
问题描述
由于我们可以在Firebase RTDB控制台上下载json文件,有什么方法可以导出Firestore集合/文档数据的json文件?
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.
推荐答案
没有,您需要提出自己的过程,例如查询集合并遍历所有内容.
There is not, you'd need to come up with your own process such as querying a collection and looping over everything.
截至2018年8月7日,我们确实有一个托管的导出系统,您可以将数据转储到GCS存储桶中.尽管它不是JSON,但它与Cloud Datastore使用的格式相同,因此BigQuery可以理解.这意味着您可以将其导入BigQuery .
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.
这篇关于从Firestore导出json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!