Open Virviil opened 1 month ago
This issue @sashahilton00 and I also discussed in the pull request https://github.com/pilagod/gorm-cursor-paginator/pull/66#issuecomment-2292405264.
Appreciate for your feedbacks on this topic 🙌 and I would like to collect more thoughts from the community, since this change would introduce a new mindset to use this library, which is quite different from the old days.
Is there any reason why it's not implemented?
Why should I provide my
after
orbefore
cursor calling right function, instead of just providing A CURSOR which has the info about if it goes forward or backward?Now after i get cursor from api, i just provide it as_is:
which is parsed internally to get information about if it's after or before.