title: How to get all documents in a firestore subcollection based on the parent´s doc values?
body: <p>I have this path to a subcollection in a Firebase Firestore: <em>Team/TeamName/Meetings/First/Data</em>. I wonder if there is any way how to get the docs in the data subcollection based on the values (fields) in the first doc (parent doc).</p>
  <p>I tried this:</p>
  <pre><code> db.collection(&quot;Team&quot;)
              .doc(&quot;TeamName&quot;)
              .collection('Meetings').where('0', '==', &quot;some data&quot;)
              .where('3', '==', &quot;doc data&quot;)
              .where('4', '==', &quot;something in textfiel&quot;).collection(&quot;Data&quot;)
  </code></pre>
  <p>But this approach does not work.</p>