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

Pagination using HAVING clauses #68

Open
tscolari opened this issue Sep 23, 2024 · 1 comment
Open

Pagination using HAVING clauses #68

tscolari opened this issue Sep 23, 2024 · 1 comment

Comments

@tscolari
Copy link

Hello 👋

I'm wondering what are your thoughts - and if you would be open for a potential PR - on having an option to filter fields by Having instead of Where.

The main use case in my scenario is that I'm trying to paginate through a table that has an aggregated value (e.g. sum(total)) and trying to paginate on top of that.

Thanks!

@pilagod
Copy link
Owner

pilagod commented Sep 24, 2024

Sure, we are welcome to pull request for any good idea. This is truly a scenario that this library not yet supported.

There might be challenges to integrate having aggregation patterns and also keep compatible with the original where model. To be honest I don't have much ideas on how to implement it at this moment. I would appreciate any attempt to bring this feature into reality 💪

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

2 participants