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

Paginate with queryBuilder counts raw number of rows instead of entity number of rows. #803

Open
linconsdev opened this issue Nov 18, 2022 · 3 comments

Comments

@linconsdev
Copy link

image

This is the meta output for only 40 rows of one entity. Im using queryBuilder and leftJoinAndMapOne and mapMany to get relationships.
I don't understand where this totalItems number 2559 is coming from.
It is easy to replicate, happens on every queryBuilder I've made.

Can this issue be addressed?

@linconsdev
Copy link
Author

Can we have this solution merged into actual package?

@salauddinn
Copy link

I am also facing the same similar issue related limit i should get 20 results but ended up getting 3 only i am using subquery way but query results coming fine but problem with pagination

Screenshot 2023-09-12 at 11 53 34 AM

@psam44
Copy link

psam44 commented Nov 16, 2023

@linconsdev or @bashleigh , please consider closing this issue as a duplicate of 627.

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

3 participants