Functions
The following functions are available globally.
-
Creates a new instance of the
QueryField
that can be used to create query predicates.field("id").eq("some-uuid") // or using the operator-based: field("id") == "some-uuid"
Declaration
Swift
public func field(_ name: String) -> QueryField
Parameters
name
the name of the field
Return Value
an instance of the
QueryField
-
The
not
function is used to wrap aQueryPredicate
in aQueryPredicateGroup
of type.not
.Declaration
Swift
public func not<Predicate>(_ predicate: Predicate) -> QueryPredicateGroup where Predicate : QueryPredicate
Parameters
predicate
the
QueryPredicate
(either operation or group)Return Value
QueryPredicateGroup
of type.not