Put in order · Next.js course · Module 4: Databases and Data Fetching

Pagination in Prisma

Arrange the Prisma call with pagination: skip 20 records and fetch the next 10

Items to put in order

  • })
  • skip: 20,
  • take: 10
  • prisma.post.findMany({

You can check the correct answer by solving this task in the CodeWorlds game.