sequelize-cursor-pagination icon indicating copy to clipboard operation
sequelize-cursor-pagination copied to clipboard

Include the before/after cursor record in the returned edges list.

Open LewisSmallwood opened this issue 1 year ago • 1 comments

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 / includeCursor boolean property in the query.
  • or by introducing beforeAndIncluding / afterAndIncluding cursor lookups.

It might be as simple to implement as changing Op.gt to Op.gte when includeCursor is set?

LewisSmallwood avatar Mar 11 '24 11:03 LewisSmallwood

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?

ashugoyal6799 avatar Dec 14 '24 13:12 ashugoyal6799