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 


last()


MongoDB Driver Function Reference


Returns the lastrows of a result set.



<cursor>.last([<number>])



Arguments


<cursor> A result set.
<number> Maximum number of rows to return (default: 1).



Returns


Returns a result set (cursor).



Example


db.employees.last().first(2);


Returns a maximum of two documents from the lastrows of the employee collection.






home | MongoDB Driver Function Reference | MongoDB Driver