[英]What's the best way to upload data into Firestore before publishing app?
I am building an app that uses Firestore as the database.我正在构建一个使用 Firestore 作为数据库的应用程序。 Entering data directly into Firestore is very time-consuming and I already have much of my starting data in a json file.
将数据直接输入 Firestore 非常耗时,而且我已经在 json 文件中保存了很多起始数据。
How can I upload that json data into Firestore?如何将 json 数据上传到 Firestore? Is there something I can run in Xcode to push that json data into Firestore?
我可以在 Xcode 中运行一些东西来将 json 数据推送到 Firestore 吗?
I appreciate any help or guidance!我感谢任何帮助或指导!
Firebase has an import/export feature, but that uses its own format. Firebase 具有导入/导出功能,但使用自己的格式。 There is nothing built into Firestore for importing data from other JSON files.
Firestore 中没有内置任何东西可用于从其他 JSON 文件导入数据。
Luckily Firestore has an API, so folks have built add-in solutions.幸运的是 Firestore 有一个 API,所以人们已经构建了插件解决方案。 A quick search led me to this promising one: https://firebase.google.com/docs/firestore/solutions/schedule-export
快速搜索让我找到了这个有希望的: https://firebase.google.com/docs/firestore/solutions/schedule-export
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.