从 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屋!