title: Firebase query not applying "where"
body: <p>Im trying to do a multiple filter system. So I need to be able to add a &quot;where&quot; depending the filters that I got.</p>
  <p>When I try to add the &quot;where&quot; like this, the snapshot has the correct houses.</p>
  <pre><code>const houses = db
    .collection(&quot;Houses&quot;)
    .where(&quot;ventRent&quot;, &quot;==&quot;, &quot;Sell&quot;)
    .limit(paginaSize);
  
  const snapshot = await houses.get();
  </code></pre>
  <p>But when I try to add the &quot;where&quot; like this, the snapshot has every house, as if it didn't do the &quot;where&quot;.</p>
  <pre><code>const houses = db
    .collection(&quot;Houses&quot;)
    .limit(paginaSize);
  
  if(filters) {
    if(filters.selectCR) {
      if(filters.selectCR === &quot;Selling&quot;) {
        houses.where(&quot;ventRent&quot;, &quot;==&quot;, &quot;Sell&quot;);
      } else {
        houses.where('ventRent', '==', &quot;Rent&quot;);
      }
    }
  }
  
  const snapshot = await houses.get();
  </code></pre>
  <p>I've tried changing to let, var and const and nothing. I've change the '' to &quot;&quot; or vice versa and nothing too.</p>
  <p>I think Im doing it in the correct way, but I have no idea why is not working</p>