nestjs-typeorm-paginate icon indicating copy to clipboard operation
nestjs-typeorm-paginate copied to clipboard

[doc] wrong comment for countQueries option

Open psam44 opened this issue 2 years ago • 0 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
  },

psam44 avatar Nov 16 '23 14:11 psam44