Thank you all. The problem here is not foundC interface
The operation of paging query of.
English is too poor, and there is no paging correlation found on mongoDB’s website.
http://api.mongodb.com/c/current/tutorial.html
There are additions, deletions, changes and counts, but there is no paging operation found. . .
The conventional method is:
db.users.find().skip(pagesize*(n-1)).limit(pagesize)
There is also a better way:
db.users.find().limit(pageSize); //first page Last_id = ... // save the last _id users = db.users.find({'_id'> last_id}). limit(10); //page 2 Last_id = ... // update last _ id