objectbox / objectbox/objectbox-dart

notOneOf() is missing in Dart API

Open
#591 1 comment 11 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.