7 ms·
Been doing it this way for a while actually. Even when it's used as a limit and offset. I find it's a good way to hide the actual pagination implementation fro
by briandilley 6y ago
Been doing it this way for a while actually. Even when it's used as a limit and offset. I find it's a good way to hide the actual pagination implementation from the client and therefor easy to swap out later without the client changing. Here's an example of a `Pagination` object that I use server side to generate and parse cursors (It's written in Kotlin):
https://gist.github.com/briandilley/a0715f9f85b632b7080f8921d87ce520 https://gist.github.com/briandilley/a0715f9f85b632b7080f8921...