Predicates are type-safe conditions used to filter records in select, update, upsert and delete. They are built from the Fields namespace generated by the @SurrealModel macro.
Comparison operators
Each field supports the standard comparison operators:
Combining predicates
Combine predicates with the logical operators &&, || and !:
Raw predicates
When you need an expression that the DSL does not cover, or when using a manually conformed model without a Fields namespace, you can supply a raw SurrealQL condition:
Using a predicate
Pass a predicate to any method that accepts a where: argument: