【发布时间】:2020-05-11 07:08:57
【问题描述】:
我在解决一个问题时遇到了很多困难。
在flutter上使用cloud_firestore,我如何在集合中创建一个新文档(如果它不存在),在该集合中创建一个新文档,并在该文档中创建一个具有名称、bool类型和类型的新字段值为真?
这就是我现在拥有的:
await Firestore.instance
.collection(collectionName)
.document(documentName)
.get()
.then((DocumentSnapshot ds) {
// do something here
});
谢谢。
【问题讨论】:
标签: firebase flutter dart google-cloud-firestore