Reputation: 2411
it is possible to update single value in map in document in Firestore without updating entire map in Flutter?
Example: I have doc with some map like on screen below. Is it possible to update a single value e.g. I want to change 2 to 'abc' without updating the entire map in Flutter?
Upvotes: 1
Views: 670
Reputation: 317948
To update a nested map property, use dot notation to give a path to the property to update:
documentReference.update({ "players.1": "value" })
Upvotes: 4