In my firestore database, I have a collection named users. Each user has a unique ID and a corresponding score:
users
0e8X3VFL56rHBxxgkYOW
score : 4
3SeDjrgAWMmh3ranh2u
score : 5
I am utilizing redux-firestore and I am trying to reset all the users' scores to 0. I attempted the following:
firestore.update({ collection: 'users' }, { score : 0 }
However, this did not work as the update method requires a document ID.
Do you have any suggestions on how I can achieve this?