I am Hack Sparrow
Captain of the Internets.

MongoDB Pagination – using skip()

Curious how pagination might be implemented in MongoDB? Let's have a data set to play around with so that we can learn by examples. Create a collection named companies and add some documents on it. [code] db.companies.insert({name:'Google'}) db.companies.insert({name:'Facebook'}) db.companies.insert({name:'Apple'}) db.companies.insert({name:'Microsoft'}) db.companies.insert({name:'Oracle'}) db.companies.insert ...