Firebase – How can I CORRECTLY append map array to firestore?
I want to add Map<> data to my firestore database with code : Map<String, Object> prop = { 'read' : true, 'vote_left' : false, 'vote_right' : false, }; Map<String, Object> attended_topic = { received_id:prop }; FirebaseFirestore.instance.collection('userinfo').doc(user_now!.uid) .update({"attended_topic": FieldValue.arrayUnion([attended_topic])}); What I…