nexus-plugin-prisma
nexus-plugin-prisma copied to clipboard
is Offset pagination supported?
I was expecting to be able to use "Offset pagination" as described here: https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/pagination
But I only see support for cursor based pagination. I am missing something?
Use paginationStrategy: 'prisma'
:
nexusPrisma({
paginationStrategy: 'prisma',
}),
thank @P4sca1 for your answer
//============= anyway, why this is not included in the doc? https://nexusjs.org/docs/plugins/prisma/overview#configuration
I was implementing the offset pagination my self until I see this post, what a relieve if this is included in the doc, it would save a lot people from the pain
@tylim88 I already opened an issue to address this but don't have the time to update the docs by myself. https://github.com/graphql-nexus/nexus-plugin-prisma/issues/901
thanks, solve my problem