I have documents like {status: ‘RED’}, {status:‘GREEN’}, {status:‘YELLOW’}…
Now I want to get all documents that re not RED or GREEN. The query below works well with vs code Couchbase Lite extension:
select meta().id, status from _ WHERE (status != "RED" AND status != "GREEN")
but it is not working in query builder with expression:
Expression.property(
"status"
).notEqualTo(Expression.string("RED").and(Expression.string("GREEN"))