Skip to content
Mongoose Query Pagination
CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

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 Garvis & Moveline

License

MIT

Something went wrong with that request. Please try again.