I want to change the value of a certain field of all documents in a Cloud Firestore collection to a certain value if that field is equal to a certain value. How do I do that?
I want to change the value of a certain field of all documents in a Cloud Firestore collection to a certain value if that field is equal to a certain value. How do I do that?
2
Answers
In addition to Doug’s answer, if you want to update all documents in a collection where a field contains a certain value, then please use the following lines of code: