nestjsx / nestjs-typeorm-paginate

:page_with_curl: Pagination response object function + types for typeorm + nestjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[doc] wrong comment for countQueries option

psam44 opened this issue · comments

In IPaginationOptions:

  /**
   * @default true
   * Turn off pagination count total queries. itemCount, totalItems, itemsPerPage and totalPages will be undefined
   */
  countQueries?: boolean;

The comment is wrong about itemCount and itemsPerPage. Here is an example of what we can have:

  meta: {
    totalItems: undefined,
    itemCount: 24,
    itemsPerPage: 25,
    totalPages: undefined,
    currentPage: 1
  },