I want to update a variable after click the button. This is my collection in firestore, and this is my variable what i want to update. Firestore Collection
That variable "bagAmount", after click I want all of them to be equal to 1. I know how update one of then, past the ID of my document, like that:
this.firestore.doc("lunch/" + this.bagIndex).update({bagAmount: 1});
But how i update all? Thanks!