I have a document with these param:
"rent": "text",
"leases": [
{
"id": 1,
"title": "text",
},
{
"id": 2,
"title": "text",
}
]
I add new elements to the array like this:
.update({'leases': FieldValue.arrayUnion([newLease])});
But how can I update that id 2 only?