Have a json structure as follows. How can an element/the marks section be updated?
Have tried using arrayUnion approach, by passing a list/hashmap of Mark object. But did not work.
saw an example https://medium.com/@thilanka.nuwan89/cloud-firestore-updating-object-arrays-be6ded13e76f
but could not figure out a way to achieve this in Java.
student {
"id" : "1122",
"marks" [{
"physics" : "95",
"maths" : "98"
}]
}
To be able to update the marks section completely/partially.