Skip to content

Feature request : QueryCondition.relationCountGT / .relationCountLT #1110

Open

Description

@RobbWatershed

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 ?

Activity

  1. changed the title [-]RelationCountGT / RelationCountLT[/-] [+]Feature request : QueryCondition.relationCountGT / .relationCountLT[/+] on Jan 19, 2023
  2. greenrobot commented on Jan 19, 2023

    @greenrobot
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions