title: Firestore to query by an array's field value
body: <h2>I'm trying to run a simple query, where I search for a document that contains a value inside an object array.</h2>
  <p>For instance, look at my database structure:</p>
  <p><img src="https://i.imgur.com/HeOGNtD.png" alt="firestore db" /></p>
  <p>I want to run a query similar to this:</p>
  <pre><code>db.collection('identites').where(&quot;partyMembers&quot;, &quot;array-contains&quot;, {name: &quot;John Travolta&quot;})
  </code></pre>
  <h3>What is the correct way to achieve this, is it even possible with Firestore?</h3>
  <p>Thanks.</p>