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

Request: Pass params to attachPaginate for global usage #24

Open
owen-soak opened this issue Jun 23, 2022 · 3 comments
Open

Request: Pass params to attachPaginate for global usage #24

owen-soak opened this issue Jun 23, 2022 · 3 comments

Comments

@owen-soak
Copy link

I'd love to be able to pass isLengthAware: true to attachPaginate() as a param and have this take effect globally on all usages of paginate.

@felixmosh
Copy link
Owner

I think that it is possible, but not sure why would you like to do that.

Pay attention that isLengthAware makes an additional db query.

@mrljsh
Copy link

mrljsh commented Mar 29, 2024

This would be a nice feature. I am aware that it would make an additional query but I need to know the total length for every request.

@felixmosh
Copy link
Owner

Would you like to make a PR for this?

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