【发布时间】:2020-07-30 12:34:54
【问题描述】:
我正在尝试这样做:
database.collection('UsuariosDev').where('Telefono', '==', textInput.current.value)
.update({
citas: firebase.firestore.FieldValue.arrayUnion(database.doc('NegociosDev/Peluquerías/Negocios/PR01/citas/' + docRef.id))
})
从集合“UsuariosDev”中获取文档,其中“Telefono”等于“textInput.current.value”,然后更新它。但似乎我不能在“where”旁边使用“update”。有什么想法吗?
【问题讨论】:
-
这个反应相关吗?
-
嗯,是web,不知道firebase是否在平台之间使用相同的代码。
标签: javascript google-cloud-firestore