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

Feature request : QueryCondition.relationCountGT / .relationCountLT #1110

Open
RobbWatershed opened this issue Jan 19, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@RobbWatershed
Copy link

First things first, I've really been enjoying the new query API as well as the new features of v3.5.0. That helps me building a cleaner and faster data layer. Thanks guys for listening to us~

I'd love to have two extra methods akin to the new relationCount query condition to check if the relation count is greater than or lower than a certain number; typically to test if entity X has existing relations (i.e. > 0) or if it reaches a given threshold.

Would that be possible ?

@RobbWatershed RobbWatershed changed the title RelationCountGT / RelationCountLT Feature request : QueryCondition.relationCountGT / .relationCountLT Jan 19, 2023
@greenrobot greenrobot added the enhancement New feature or request label Jan 19, 2023
@greenrobot
Copy link
Member

Agreed that this feature request makes sense.
(Internal note: the existing query condition could be extended by storing an enum to specify the operation.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants