Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] wrong comment for countQueries option #875

Open
psam44 opened this issue Nov 16, 2023 · 0 comments
Open

[doc] wrong comment for countQueries option #875

psam44 opened this issue Nov 16, 2023 · 0 comments

Comments

@psam44
Copy link

psam44 commented Nov 16, 2023

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
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant