What's the best way to get data from collections nested in documents in Firestore?
问题 I'm going through the Firestore docs and guide. My code samples below use AngularFire2. Let's consider a "chats" collection similar to the examples provided here: https://firebase.google.com/docs/firestore/manage-data/structure-data They recommend this kind of structure but I don't see where they discuss getting all the data efficiently. Each chat document has properties, a collection of members, and a collection of messages: chatsCollection chatDocument [insert chat data fields here]