-
Notifications
You must be signed in to change notification settings - Fork 0
Documents
Efra Espada edited this page Feb 22, 2024
·
3 revisions
When working with Firestore documents, you'll need a Document
object:
final chatDocument = Document(
reference: FirebaseFirestore.instance.collection('chats').doc('chat_id'),
);
Alternatively, you can directly obtain a Document
object from a Firestore document reference:
final chatDocument = FirebaseFirestore.instance.collection('chats').doc('chat_id').asDocument();