Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/method/cursor.max/#cursor.max
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/reference/operator/query-modifier/
*Screen Resolution*: 1280 x 800
*repo*: docs
*source*: reference/method/cursor.max
*Location*: http://docs.mongodb.org/manual/reference/method/cursor.max/#cursor.max *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/reference/operator/query-modifier/ *Screen Resolution*: 1280 x 800 *repo*: docs *source*: reference/method/cursor.max
Description
Hi,
db.products.find().min(
{ price: 1.39 }).max(
{ price: 1.99 }).hint(
{ price: 1 })
returns only the following single document:
{ "_id" : 10, "item" : "orange", "type" : "navel", "price" : 1.39 }but in the document ( http://docs.mongodb.org/manual/reference/method/cursor.max/#cursor.max) , it displays more than one document.
Thanks & Regards,
Racki