I'm a beginner creating an mobile app with react-native and firebase. I have a value stored in many documents and i want to update the value in all the documents
i tried with .where() clause but i got an error
firebase.firestore().collection('myCollection').where('myValue','==','oldValue').update({myValue:newValue});
I expected the data changed but i got this warning:
Possible Unhandled Promise Rejection (id: 0):
TypeError: _reactNativeFirebase.default.firestore(...).collection(...).where(...).update is not a function
Please excuse my bad english