im having trouble updating the quantity property in my angular-firebase project
chosenMeal(meal,price,quantity){
for (let i = 0; i < this.order.length; i++) {
const element = this.order[i];
if(element.meal != meal){
this.db.collection('tables').doc(this.table.propertyId).update({order:({meal,price,quantity})})
}else{
// my question
}
}
so the logic is like this if the chosen meal isn't in the order array then add it to the order array in firebase, else if the meal exists on the order array just increment the quantity, i don't know how to update just the quantity in the order object in firebase, or i don't know how to access only the one property in a firebase object