objectbox / objectbox/objectbox-dart

Query List<String> where element contains( 'part' )

Open
#610 2 comments 0 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 am trying to query entities with property of type List<String>
that have any element contains some text.

Proposed solution

_ Add QueryCondition elementContains(String part) to QueryStringVectorProperty

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

Locate QueryStringVectorProperty and review its existing query-condition behavior. Add the requested elementContains(String part) condition so a List property matches when any element contains the supplied text, then verify the query behavior with the relevant tests.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.