title: MongoDB - elemMatch with range of numbers not working as expected?
body: <p>I have a collection with documents which looks like this:</p>
  <pre><code>_id1:
  Price:[1,100000]
  
  _id2:
  Price:[1,98500]
  
  _id3:
  Price:[1,3005]
  
  ..etc
  </code></pre>
  <p>Following this documentation: <a href="https://docs.mongodb.com/manual/reference/operator/query/elemMatch/" rel="nofollow noreferrer">https://docs.mongodb.com/manual/reference/operator/query/elemMatch/</a></p>
  <p>I tried reproduce the find for elements which are in a certain price range but unfortunately it doesn't work for me, I get back all of my elements even though they are not matching the criteria. What am I doing wrong?</p>
  <p>My query:</p>
  <pre><code>{ Price:{ $elemMatch: { $gte: 1, $lt: 85 } } }
  </code></pre>