I am using Flutter cloud firestore. Here is how my database looks like.
I want to add more fields (like "2222") in a_numbers object. I use updateData()like this,
DocumentReference ref = Firestore.instance.document("products/-LMhR5cAyW4T0sa03UtU");
ref.updateData({"a_numbers": {"2222" : false}});
The above snippet basically deletes the previous value (1111) and then updates the database with 2222 field.
Any solution?
