I have this Firestore very basic document object named 'index' : {index: [{name: "Book"}]}
I want to update the field 'name' incrementally using this code :
await docRef.update({'index.0.name': 'Book2'})
But the result is: {index:{"0": {name: "Book2"}}}
I lost my array. It there a way to make it works ? this example is very basic, but the principle is to be able to update a single field on a massive array of objects without having to give the whole object with the update or set method every time for a single field update.
Thanks!