so i want to update inside the array
here is the database look like
static Future<void> EditObat(
String? namarsgm,
int nominal,
idobat,
) async
{
await Database.doc(hospital).update(
{
'Obat'[idobat]: FieldValue.arrayUnion({'Banyak' :
FieldValue.increment(nominal)}),
},
);
}
So i want to increase the value 'Banyak', and after research, i still haven't make it anyone know how to solve this ?