I\'m probably missing something since I\'m still learning the ins and outs of MongoDB, but I need help with paging a collection.
I have a collection that has a lis
You just need to call skip on the cursor
see MongoDB documentation on cursor skip "This approach may be useful in implementing “paged” results".
This example is taken from Mongodb's example
function printStudents(pageNumber, nPerPage) {
print("Page: " + pageNumber);
db.students.find().skip((pageNumber-1)*nPerPage).limit(nPerPage).forEach( function(student) { print(student.name + ""); } );
}