objectbox / objectbox/objectbox-dart
notOneOf() is missing in Dart API
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 162
- Avg merge
- 15m
- Merged PRs (30d)
- 1
Description
Use case
I need to get from DB all objects that does not meet condition.
box.query(MyData_.name.notOneOf(['name1','name2']))
It would be great to add that option as described in doumentation:
https://docs.objectbox.io/queries#common-conditions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Dart query API used by box.query and compare its condition methods with the common conditions documented at docs.objectbox.io/queries#common-conditions. Trace how MyData_.name conditions are exposed, then verify that notOneOf accepts a list and returns objects whose field matches none of the supplied values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100