Put in order · NestJS course · Module 8: Caching and Performance

Paginated Response Structure

Arrange paginated response elements from data to metadata:

Items to put in order

  • meta.page - current page number
  • meta.totalPages - total number of pages
  • meta.total - total number of records
  • data: T[] - array of results on the page

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