sequelize-cursor-pagination
sequelize-cursor-pagination copied to clipboard
Include the before/after cursor record in the returned edges list.
It would be nice to have the option to specify whether the current cursor record is included in the returned edges list.
Either by:
- Specifying an
includeCurrent/includeCursorboolean property in the query. - or by introducing
beforeAndIncluding/afterAndIncludingcursor lookups.
It might be as simple to implement as changing Op.gt to Op.gte when includeCursor is set?
Hey, Can you please elaborate what do you mean by current cursor record here?
Do you mean to pass a cursor array to check which all cursors are present in the result edges?