I am using cloud_firestore for flutter .I want to add onto a map field (userInfo) of a specific document of my firebase database on the press of a button. I do not want to add any other fields, only append more data to the map(userInfo).In this case using this code name is always unique (the userID) of a user.
Firestore.instance.collection("prayerRooms") .document(docID) .updateData({ 'userInfo.userId': name, 'userInfo.userCount': 2 } ); 