How to update fields in Firestore map
问题 Don't know how to go about adding new fields into a map in Firestore using a variable rather then a hardcoded field name. I have a data structure in firestorm. The collection is called webQuiz and the document is called '12345. The data structure looks like: roomName: Demo0 roomNumber: 46532 people:{11111:"David, 22222:"Peter} Note that people is a map data object. I would like to add another field to the people map. The code below works but instead of the data looking like people:{11111: