Title: add method 'contains' to QueryBuilder for array properties (like BooleanArray,IntArray,LongArray in Kotlin) · Issue #1211 · objectbox/objectbox-java · GitHub
Open Graph Title: add method 'contains' to QueryBuilder for array properties (like BooleanArray,IntArray,LongArray in Kotlin) · Issue #1211 · objectbox/objectbox-java
X Title: add method 'contains' to QueryBuilder for array properties (like BooleanArray,IntArray,LongArray in Kotlin) · Issue #1211 · objectbox/objectbox-java
Description: Is there an existing issue? I have searched existing issues Use case ❗ It is very useful when implementing paged queries. class Entity { var ids: LongArray? = null } fun QueryBuilder
Open Graph Description: Is there an existing issue? I have searched existing issues Use case ❗ It is very useful when implementing paged queries. class Entity { var ids: LongArray? = null } fun QueryBuilder
X Description: Is there an existing issue? I have searched existing issues Use case ❗ It is very useful when implementing paged queries. class Entity { var ids: LongArray? = null } fun QueryBuilder<Entity>....
Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1211
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add method 'contains' to QueryBuilder for array properties (like BooleanArray,IntArray,LongArray in Kotlin)","articleBody":"\u003c!--\n\nIf you are looking for support, please check out our documentation:\n- https://docs.objectbox.io\n- https://docs.objectbox.io/faq\n- https://docs.objectbox.io/troubleshooting\n\n--\u003e\n\n### Is there an existing issue?\n\n- [x] I have searched [existing issues](https://github.com/objectbox/objectbox-java/issues)\n\n### Use case\n❗ **It is very useful when implementing paged queries.**\n```\nclass Entity {\n var ids: LongArray? = null\n}\n\nfun QueryBuilder\u003cEntity\u003e.filter(id: Long) {\n contains(Entity_.ids, id)\n}\n```\n\n### Proposed solution\n```\npublic QueryBuilder\u003cT\u003e contains(Property\u003cT\u003e property, bool value) \npublic QueryBuilder\u003cT\u003e contains(Property\u003cT\u003e property, int value) \npublic QueryBuilder\u003cT\u003e contains(Property\u003cT\u003e property, long value) \n```\nOR\n```\npublic PropertyQueryCondition\u003cENTITY\u003e contains(bool value)\npublic PropertyQueryCondition\u003cENTITY\u003e contains(int value)\npublic PropertyQueryCondition\u003cENTITY\u003e contains(long value)\n```\n### Alternatives\n\n_TODO Describe any alternative solutions or features you've considered._\n\n### Additional context\n\n_TODO Add any other context (e.g. platform or language) about the feature request here._\n","author":{"url":"https://github.com/amoikevin","@type":"Person","name":"amoikevin"},"datePublished":"2025-06-18T06:29:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1211/objectbox-java/issues/1211"}
| 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:7222de78-990c-bf13-d5dd-f2be15d01b6d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADF4:1AFF24:3380EC:432565:698008D5 |
| html-safe-nonce | 480291d60cbfda37a3a246569e2f4b12677b0150a6f784ce38e2a46375e56188 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREY0OjFBRkYyNDozMzgwRUM6NDMyNTY1OjY5ODAwOEQ1IiwidmlzaXRvcl9pZCI6IjQ5MTg0MjEzOTE3OTI5MzMwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 715e560443a991a0bf61217e82dc1f53c10cca754185e6115f65f28bfd1f8d24 |
| hovercard-subject-tag | issue:3155636225 |
| 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/1211/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6d88612b6aa502420827c721578f24e5e6fd663782b44853c909f7d11c19e45/objectbox/objectbox-java/issues/1211 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6d88612b6aa502420827c721578f24e5e6fd663782b44853c909f7d11c19e45/objectbox/objectbox-java/issues/1211 |
| og:image:alt | Is there an existing issue? I have searched existing issues Use case ❗ It is very useful when implementing paged queries. class Entity { var ids: LongArray? = null } fun QueryBuilder |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amoikevin |
| 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