【发布时间】:2018-07-30 02:51:19
【问题描述】:
没有关于如何在 firestore 的文档中添加子集合的文档, 如何使用 Web 应用程序添加子集合? even tried like this but didn't worked。 如何使用代码在应用程序中添加子集合? 有什么办法吗,或者使用firebase实时数据库会更好? 如果是这样,请让我知道如何在 firebase 中进行操作i want to add like this i did this 但我收到这样的错误the error says this
【问题讨论】:
-
解决方案是:获取感兴趣的文档(doc),然后:doc.ref.collection('Collection_Name').add('Object_to_be_added') 建议在承诺。
-
OP 你能在你的问题中加入代码块,而不是代码图像吗?
标签: javascript node.js firebase vue.js google-cloud-firestore