| |
read source history
= last() =
----
[[MongoDB Driver Function Reference]]
Returns the lastrows of a result set.
[[[@cG
<cursor>.last([<number>])
]]]
**Arguments**
[[[@w
|@t0@r0@c0 <cursor> | | A result set. |
| <number> | | Maximum number of rows to return (default: 1). |
]]]
**Returns**
[[[@w
Returns a result set (cursor).
]]]
**Example**
[[[@cw
db.employees.last().first(2);
]]]
Returns a maximum of two documents from the lastrows of the //employee// collection.
----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
|