objectbox / objectbox/objectbox-java

Feature request : QueryCondition.relationCountGT / .relationCountLT

Open
#1,110 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

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 ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the QueryCondition.relationCount API named in the request and locate its implementation and existing coverage. Define consistent greater-than and less-than relation-count behavior, including zero and threshold cases; done means both query conditions work through the Java API.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.