Closed 2color closed 4 years ago
In a similar fashion to how we have a Filtering section, we should add a section on pagination.
before
after
*WhereUniqueInput
UserWhereUniqueInput
string
Before:
const paginatedPosts3 = await prisma.post.findMany({ first: 5, after: 43834, })
After:
const paginatedPosts3 = await prisma.post.findMany({ first: 5, after: { id: 43834}, })
Pagination pull request merged: https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/pagination
What
In a similar fashion to how we have a Filtering section, we should add a section on pagination.
Why
before
andafter
which now accept*WhereUniqueInput
, e.g.UserWhereUniqueInput
instead of astring
.Example
Before:
After: