Not-In filter not available in couchbaselite

Not-in filter not supported in CouchbaseLite, is there any workarround other then having several not-equal with AND?

Specifically, I want opposite of the following expression

let query = QueryBuilder
                .select(
                    SelectResult.all()
                )
                .from(
                    DataSource.collection("Fruits")
                )
                .where(Expression.property("name").in(["Apple", "Banana", "Orange"]))

Can you not try:

.where(Expression.not(Expression.property("name").in("[Apple", "Banana", "Orange"])))

?

Ref: Expression Class Reference

HTH.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.