【发布时间】:2018-06-05 11:07:06
【问题描述】:
【问题讨论】:
-
我也有兴趣了解
标签: angular typescript google-cloud-firestore
【问题讨论】:
标签: angular typescript google-cloud-firestore
如果你想保存一个数组你可以写db.doc("documentName.etiquetas").set(["tag1", "tag2", "tag2"])
这将最终成为您想要的结构。
但是,最好将其保存为索引为0,1,2,... 的地图。因为在这种情况下,您可以直接引用和更新元素。例如。 db.doc("documentName.etiquetas.0").set("new tag1")
【讨论】: