bookshelf pagination with knex code example
Example: knex pagination plugin
bookshelf.plugin('pagination')
Model
.forge()
.fetchPage({page: 10, pageSize: 20});
// OR
fetchPage({limit: 20, offset: 180});
bookshelf.plugin('pagination')
Model
.forge()
.fetchPage({page: 10, pageSize: 20});
// OR
fetchPage({limit: 20, offset: 180});