robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















read  source  history 


= max() =
----
[[MongoDB Driver Function Reference]]


Returns the maximum for the selected fields.


[[[@cG

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

]]]


**Arguments**

[[[@w

|@t0@r0@c0 <cursor> | | A result set. |
| <field> | | A field name. |

]]]


**Returns**

[[[@w

Returns a result set (cursor).

]]]


**Example**

[[[@cw

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

]]]

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





----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]