title: Firestore query using an object element as parameter
body: <p>i'm using Firestore as my database in a project and i have a table that i need to do a query inside an object</p>
  <pre><code>{
     foo: &quot;data&quot;,
     bar: &quot;data&quot;,
     exObject: {
        dataToQuery: &quot;value&quot;
     }
  }
  </code></pre>
  <p>here is an example of a structure where i want to do a query inside the object
  a query that would look like this:</p>
  <pre><code>dbRef.collection(&quot;Table&quot;).where(&quot;exObject.dataToQuery&quot;, &quot;==&quot;, &quot;value&quot;)
  </code></pre>
  <p>but this is not working.</p>
  <p>Is there a way to query in Firestore using an object's inner value as parameter?
  If not, is there a way to achieve something that would give the same result?</p>
  <p>Example of a Firestore Structure</p>
  <p><a href="https://i.stack.imgur.com/yGtpx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yGtpx.png" alt="enter image description here" /></a></p>