Is it possible to query Field and get main collection field and get sub collection with sub collection documents on cloud firestore?
问题 I need to query fields and get all sub-collections and fields. Is it possible? Stream<List<ChatFieldModel>> getChatField(String uid) { var ref = _db.collection('chats') .where('toUserId', isEqualTo: uid); //Afterthat need to get sub collection with sub collection list of documents and main collection fields value. is it possible? return ref.snapshots().map((list) => list.documents .map((doc) => ChatFieldModel.fromForestore(doc)) .toList()); } 回答1: Firestore queries are shallow. They only