objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.4k stars 302 forks source link

Search for all records that have records in the related table #566

Open jrcacd opened 6 years ago

jrcacd commented 6 years ago

How to make a query like this?

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

greenrobot commented 6 years ago

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-team commented 5 years ago

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

greenrobot-team commented 4 years ago

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