【发布时间】:2021-07-08 17:55:51
【问题描述】:
需要帮助。我无法从firebase.firestore 访问arrayUnion 或FieldValue。我有存储在 Firestore 上的地图数组。即使{merge:true} 不起作用,我也需要在同一数组中追加数据并增加索引。我正在使用 Ionic 3。
firebase.firestore.FieldValue.arrayUnion - 在 arrayUnion 处出错。
错误是:
Property 'arrayUnion' does not exist on type 'typeof FieldValue'
【问题讨论】:
-
请花点时间查看How do I ask a good question? 和How to create a Minimal, Complete, and Verifiable example。我们需要查看您遇到困难的代码以便提供帮助。还包括您的故障排除以及您的 Firebase 结构的图像,以便我们了解您尝试访问的内容。
标签: angular firebase google-cloud-firestore ionic3