bookshelf query with pagination 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});