dkrm-mongoose-paginate
v1.0.2
Published
Pagination plugin for Mongoose
Downloads
1
Maintainers
Readme
dkrm-mongoose-paginate
Pagination plugin for Mongoose
Installation
npm install dkrm-mongoose-paginate
Usage
Add plugin to a schema and then use model paginate
method:
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema = new mongoose.Schema({ /* schema definition */ });
schema.plugin(mongoosePaginate);
var Model = mongoose.model('Model', schema); // Model.paginate()