How to mimic the prisma cursor option for use with useInfiniteQuery
How to mimic the cursor option in drizzle with MySQL?
This is the Prisma documentation: https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination
1 Reply
Cursors are just queries with a limit
You'll have to keep track of the last seen ID, because that'll need to provide in subsecuent queries to get the next batch of results
for example: