You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mnigos
changed the title
paginate function returns wrong number of items
paginate function returns wrong number of items when using queryBuilder
Apr 18, 2024
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: