objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

NotContains

Open vfeofilaktov opened this issue 5 years ago • 2 comments

Can you add support notContains to QueryBuilder for string

builder.notContains(Person_.name, "bla")

vfeofilaktov avatar Jan 29 '19 12:01 vfeofilaktov

#835 also suggested notStartsWith and similar.

While not tremendously helpful, some use cases may be solved with Query.filter(filter). https://docs.objectbox.io/queries#query-filters

Or Query.subscribe() with a transformer. https://docs.objectbox.io/data-observers-and-rx#transforming-data

greenrobot-team avatar Aug 04 '20 13:08 greenrobot-team

Wouldn't it be better/easier? to introduce a general not() for QueryBuilder that negates the next part? Realm does have that, and of course SQL 😁

ridcully99 avatar Aug 26 '20 04:08 ridcully99