relay-sequelize-pagination
Relay Cursor-Based Pagination Support for Sequelize
This microlibrary exports a function that will mutate the limit
and criteria
fields of a Sequelize FindOptions
object with values based on Relay's pagination fields (e.g. first
, after
, last
, and before
).
const addCursorPagingCriteria = default; { const criteria = ; // An 'order' property should be added to the criteria here or in your repository. ; return ;}