objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Search for all records that have records in the related table

Open jrcacd opened this issue 7 years ago • 3 comments

How to make a query like this?

noteBox.query() .equal(Note_.title, queryString) .link(Note_.tags).totalRecordsGreaterThan(0) .build() .find();

jrcacd avatar Sep 26 '18 13:09 jrcacd

For now you can use query filters to achieve this.

Let's see if that would be a feature of a more general interest to be implemented in the core.

greenrobot avatar Sep 27 '18 21:09 greenrobot

Please thumbs up the first comment if you are interested in this feature. -ut

greenrobot-team avatar Nov 19 '18 14:11 greenrobot-team

This is related to #677 asking for an isEmpty condition on ToMany.

greenrobot-team avatar Aug 04 '20 13:08 greenrobot-team