Bookshelf js Simple Pagination

Similar to Laravels Eloquent feature.

Will Bowman
Feb 21, 2018 · 1 min read

UPDATE: I’ve made this plugin a package.


Use the simplePaginate plugin to call a fetchAll and return single pages with meta data.

Intended for use with large datasets as pagination with counts can be slow.

Example:

Returns:

Links are integers, not full links.

asked.io

A day-to-day log of the questions we’ve asked & the answers we’ve found.

Will Bowman

Written by

Web Developer Since 1998

asked.io

asked.io

A day-to-day log of the questions we’ve asked & the answers we’ve found.