Skip to content

Ohiekkar/mongoose-pagination

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT

About

Mongoose Query Pagination

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 68.0%
  • JavaScript 32.0%