I\'m trying to update some data in my firestore database and the data inside is Map
in other words, a map of lists.
so when I\'m tr
There is no way to update an item in an array field by its index. Instead you'll have to:
The exception to this is when your array contains unique, unordered values, such as when you for example store an array of the tags for a post. In that case you can use the arrayUnion operator to manipulate the array. However your case looks different, so you'll have to use the above steps.
This questions comes up quite regularly, so I recommend reading some of these: