title: Query Firebase Database with two between conditions
body: <p>I'm wondering if it's possible to return a list of values from my Firebase database where each element satisfies two conditions.</p>
  
  <p>For example, if my database looked like this:</p>
  
  <pre><code>MYAPP
  |_______________items
  |                   |_____OshwYF72Jhd9bUw56W7d
  |                   |                   |
  |                   |                   |__item_name:"plank_5"
  |                   |                   |__length:"120"            
  |                   |                   |__width:"50"             
  |                   |                            
  |                   |_____KbHy4293dYgVtT9pdoW
  |                   |_____PS8tgw53SnO892Jhweh
  |                   |_____Gicuwy8r23ndoijdakr
  |
  |___customers
  </code></pre>
  
  <p>And I want to query the database for the <code>item_name</code> of every item that has a length of between 100-150 and a width of between 30-70, is there a way for me to do this with a Firebase query?</p>
  
  <p>I've read the answers here: <a href="https://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase">Query based on multiple where clauses in firebase</a> but that doesn't deal with multiple <code>between</code>/<code>range</code> clauses, which is what I would need in the above scenario.</p>
  
  <p>I saw this plugin in another answer: <a href="https://github.com/davideast/Querybase" rel="nofollow noreferrer">https://github.com/davideast/Querybase</a> but the <code>where</code> clause doesn't seem to take a range of values. For example: </p>
  
  <pre><code>const queriedDbRef = querybaseRef
    .where({
      length: (between 100-150),
      width: (between 30-70)
    });
  </code></pre>
  
  <p>Is such a query even possible? Or will I have to get all items matching one condition, and then apply the second condition client-side, using Javascript?</p>