I have a firestore document that has a lot of nested objects and lists and I need to update a particular value in an ArrayList:
I need to update that checked value. I thought I would be able to update it easily by doing:
db.collection("users").document(user.getUid()).update(
"weeks[" + (weekNum - 1) + "].checked", currentCheckBox.isChecked());
However, I am realizing you can't do that with an ArrayList in Firestore. I understand I could do an ArrayUnion but that would mean recreating that entire index in the array and it would end up getting added at the end of the ArrayList. Is there any possible way to update this checked value?