After clicking the button, I need to update a variable. The variable in question is "bagAmount" and it is stored in my firestore collection. Here is a link to view the Firestore Collection: Firestore Collection
Currently, I am able to update one of the variables by passing the ID of the document into this code:
this.firestore.doc("lunch/" + this.bagIndex).update({bagAmount: 1});
My question is, how can I update all of them at once? Any suggestions would be greatly appreciated. Thank you!