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