title: How can I get a collection inside a QuerySnapshot
body: <p>On the explore page, I <code>get()</code> the entire <code>users</code> collection to create a user list and search results. Inside each of those user documents is a collection <code>posts</code> that I also need to get to create a <code>GridView</code> of each post. I want to reuse that <code>users</code> collection QuerySnapshot instead of fetching each <code>posts</code> collection again to save money. Is this possible?</p>
  <p>Here is my current function:</p>
  <pre><code>  void fetchUsers() async {
      final userRef = FirebaseFirestore.instance.collection('users');
  
      final QuerySnapshot result = await userRef.get();
  
      final docs = result.docs.asMap();
  
      docs.forEach((index, value) {
        final profile =
            ProfileObject.fromJson(value.data() as Map&lt;String, dynamic&gt;);
  
        usersList.add(UserSearchResult(profile, value.id));
  
  /// Below is the code for getting the posts, not working, need ideas
  
        final QuerySnapshot postsResult = value.get('posts');
  
        final posts = postsResult.docs.asMap();
  
        posts.forEach((index, value) {
          final post = Post.fromJson(value.data() as Map&lt;String, dynamic&gt;);
  
          postsList.add(post);
        });
      });
  
  
      print(usersList);
      print(postsList);
    }
  </code></pre>
  <p>Here is the structure of my Firestore:</p>
  <ul>
  <li>users
  <ul>
  <li>uid (doc)
  <ul>
  <li>posts (collection)</li>
  <li>info (fields)</li>
  </ul>
  </li>
  <li>uid (doc)
  <ul>
  <li>posts (collection)</li>
  <li>info (fields)</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>