robbiblubber.org

help | login | search:  
>>

show wiki  show source  compare to current  compare to previous  read  history 


max()


MongoDB Driver Function Reference


Returns the maximum for the selected fields.



<cursor>.max([<field>[,...]])



Arguments


<cursor> A result set.
<field> A field name.



Returns


Returns a result set (cursor).



Example


db.employees.find().max("age");


Selects the maximum for the age field from the employees collection.




home | MongoDB Driver Function Reference | MongoDB Driver