Channels
prisma-migrate
prisma-whats-new
prisma-jobs
prismaserverless
prisma-in-production
random
graphql-nexus
job-board
prisma-client
prismaday
prisma1-community
prisma-go-community
prisma-studio
mongodb
product-wishlist
madewithprisma
prisma-data-platform
orm-help
Powered by
#orm-help
Title
# orm-help
v
ven v
09/21/2022, 3:49 PM
Hi - I am trying to implement cursor based pagination. (docs here -
https://www.prisma.io/docs/concepts/components/prisma-client/pagination
) . how do I know I have reached the last batch available? my "isLoading" spinner just keeps spinning and no exception is being thrown.
👀 1
j
Jarupong
09/21/2022, 4:51 PM
Would you try this plugin it might help you
https://github.com/devoxa/prisma-relay-cursor-connection
a
Austin
09/21/2022, 8:09 PM
Hey there, I think the only way to now for sure is to fetch the next page and check for results. If there are no more records, you have reached the end.
v
ven v
09/21/2022, 9:20 PM
thank you
3 Views
Post