mardi 29 septembre 2015

Mongo $gt, $lt query not working for NumberInt

Here is my screenshot, I don't understand why sometimes value being stored as a a number and sometimes as NumberInt.

enter image description here

And When i am try this query for search

{
    "price.egglessPrice" : { '$gt' : 360, '$lt':370}
}

I always get the result including above screenshot. but this is not right ans. There is no price lies between 360 to 370.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1PLf1y2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire