ObjectFilterExpression
public class ObjectFilterExpression : Codable
A filter expression consists of a filter operator and an operator-specific number of filter operands (at most two).
Tip: use one of the typesafe FilterOperations
functions to specify a
filter expression.
-
The filter operator constant.
Declaration
Swift
internal(set) public var filterOperator: ObjectFilterOperator { get }
-
The first operand of the filter expression (optional).
Declaration
Swift
internal(set) public var firstOperand: AnyCodable? { get }
-
The second operand of the filter expression (optional).
Declaration
Swift
internal(set) public var secondOperand: AnyCodable? { get }
-
Creates an instance of ObjectFilterExpression.
Declaration
Swift
public init(filterOperator: ObjectFilterOperator, op1: AnyCodable? = nil, op2: AnyCodable? = nil)
Parameters
filterOperator
The filter operator constant.
op1
The first operand of the filter expression (optional).
op2
The second operand of the filter expression (optional).
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public required init(from decoder: Decoder) throws