2.0.0-pre.1 • Published 3 years ago

mongoose-plugin-paginate v2.0.0-pre.1

Weekly downloads
61
License
MIT
Repository
github
Last release
3 years ago

mongoose-plugin-pagination

Pagination plugin for mongoose

Node.js CI

Node.js Publish

Why This Plugin

mongoose-plugin-paginate is a cursor based pagination library having a page wrapper. The plugin can be used as both page as well as cursor based pagination. The main usage of the plugin is you can alter the return value keys directly in the query itself so that you don't need any extra code for transformation. The initial idea of this plugin is loosely based on mongoose-plugin-paginate package by github.com/edwardhotchkiss/. So this can be considered as an upgraded version of mongoose-plugin-paginate with much more options.

The below documentation is not perfect. Feel free to contribute. :)

Installation

npm install mongoose-plugin-pagination