mongoose-pagination

Mongoose Query Pagination

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mongoose-pagination
5321.0.012 years ago12 years agoMinified + gzip package size for mongoose-pagination in KB

Readme

mongoose-pagination Build Status
Mongoose Query Pagination

Installation

$ npm install mongoose-pagination

Usage

require 'mongoose-pagination'

model
  .find()
  .paginate(1, 10)
  .exec(function(err, docs) {
    console.log('docs: ', docs)
  });

model
  .find()
  .paginate(1, 10, function(err, docs, total) {
    console.log('total: ', total, 'docs: ', docs)
  });

Tests

$ npm test

Authors Christopher Garvis0 & Moveline1

License

MIT