| |
read source history
= min() =
----
[[MongoDB Driver Function Reference]]
Returns the minimums for the selected fields.
[[[@cG
<cursor>.min([<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().min("age");
]]]
Selects the minimum for the age field from the //employees// collection.
----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
|