【发布时间】:2019-10-14 05:25:57
【问题描述】:
我是使用 react-native 和 firebase 创建移动应用的初学者。 我有一个值存储在许多文档中,我想更新所有文档中的值
我尝试使用 .where() 子句,但出现错误
firebase.firestore().collection('myCollection').where('myValue','==','oldValue').update({myValue:newValue});
我预计数据会改变,但我收到了这个警告:
Possible Unhandled Promise Rejection (id: 0):
TypeError: _reactNativeFirebase.default.firestore(...).collection(...).where(...).update is not a function
请原谅我的英语不好
【问题讨论】:
标签: javascript firebase react-native google-cloud-firestore react-native-firebase