-
Notifications
You must be signed in to change notification settings - Fork 125
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
paginate function returns wrong number of items when using queryBuilder #894
Comments
Mnigos
changed the title
paginate function returns wrong number of items
paginate function returns wrong number of items when using queryBuilder
Apr 18, 2024
any news? |
I have same error. |
Since there is no response from contributors I decided to migrate to nestjs-paginate |
Yes, me too |
The problem still occurs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While the limit is set to
10
, paginate function returns only3
items:I tried to set limit to
20
and then paginate function returns only6
items:On second page the number of items with limit set to
10
it still remains3
, but if I set the limit to20
it will return4
items:artists.controller.ts
paginated-query.dto.ts
I also have another controller that uses paginate function, but there the numbers of
itemCount
are different,7
instead of6
while limit is set to20
.package.json
EDIT: I've discovered that if you pass repository instead of queryBuilder it will return correct number of items.
The text was updated successfully, but these errors were encountered: