Title: ability to link queries with OR not just AND · Issue #1223 · objectbox/objectbox-java · GitHub
Open Graph Title: ability to link queries with OR not just AND · Issue #1223 · objectbox/objectbox-java
X Title: ability to link queries with OR not just AND · Issue #1223 · objectbox/objectbox-java
Description: Use case I have a DB where EntryA has one-to-many relationships with EntryB. I encountered a case where I have a text field, and I want to query the EntryA database to retrieve all entries filtered by that text field's value. So for valu...
Open Graph Description: Use case I have a DB where EntryA has one-to-many relationships with EntryB. I encountered a case where I have a text field, and I want to query the EntryA database to retrieve all entries filtered...
X Description: Use case I have a DB where EntryA has one-to-many relationships with EntryB. I encountered a case where I have a text field, and I want to query the EntryA database to retrieve all entries filtered...
Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1223
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ability to link queries with OR not just AND","articleBody":"### Use case\n\nI have a DB where EntryA has one-to-many relationships with EntryB.\nI encountered a case where I have a text field, and I want to query the EntryA database to retrieve all entries filtered by that text field's value.\nSo for value 'aa', I want to get all the EntryA values where EntryA.name contains 'aa' OR(not AND, which is the default) if EntityA.items contain items with name containing 'aa'\n\nCode example\n\n```dart\n\n final builder =\n store.box\u003cEntryA\u003e().query(EntryA_.name.contains('aa'))\n ..link(EntryA_.owner, Owner_.id.equals(123))\n ..backlink(EntryB_.parent, EntryB_.name.contains('bb'));\n```","author":{"url":"https://github.com/chirastefan","@type":"Person","name":"chirastefan"},"datePublished":"2025-11-19T21:28:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1223/objectbox-java/issues/1223"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d140f367-d88b-47d1-e30f-c14e023a79e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8320:1AFF24:31251B:40097A:69800866 |
| html-safe-nonce | 40686482d21d1445956b5518344004086f9537384ece8c381c0d8aa656fd37fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzIwOjFBRkYyNDozMTI1MUI6NDAwOTdBOjY5ODAwODY2IiwidmlzaXRvcl9pZCI6IjQwOTM5OTMwNjQ4ODY5NjIyNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73072193931ebd8f67adc6f8e520bbcfa2845281416b4e1554c3e63097365c31 |
| hovercard-subject-tag | issue:3644485706 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/objectbox/objectbox-java/1223/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b32df53f394c9bcde3043d8bb85b56b7c3f96e5735b93d15e9f8981ef38aa7b/objectbox/objectbox-java/issues/1223 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b32df53f394c9bcde3043d8bb85b56b7c3f96e5735b93d15e9f8981ef38aa7b/objectbox/objectbox-java/issues/1223 |
| og:image:alt | Use case I have a DB where EntryA has one-to-many relationships with EntryB. I encountered a case where I have a text field, and I want to query the EntryA database to retrieve all entries filtered... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chirastefan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git |
| octolytics-dimension-user_id | 22327943 |
| octolytics-dimension-user_login | objectbox |
| octolytics-dimension-repository_id | 79901405 |
| octolytics-dimension-repository_nwo | objectbox/objectbox-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79901405 |
| octolytics-dimension-repository_network_root_nwo | objectbox/objectbox-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width