Answers for "update firestore document AFTER:2021"

0

update firestore document AFTER:2021

await QuerySnapshot _querySnapshot = FirebaseFirestore.instance
        .collection("chatRoom")
        .doc(chatRoomId)
        .collection("chats")
        .where('sendTo', isEqualTo: receiverId).get();
if (_querySnapshot.docs.isNotEmpty) await _querySnapshot.docs[0]
                                         .reference
                                         .update('YourUpdateData');
Posted by: Guest on January-31-2022

Code answers related to "update firestore document AFTER:2021"

Browse Popular Code Answers by Language