GreaterThan
public struct GreaterThan<I> : Operation where I : Identifier
A codable struct enabling greater than filtering
Usage Example:
To filter with greaterThan on age which is an Integer, we would write:
struct MyQuery: QueryParams {
let age: GreaterThan<Int>
}
let query = MyQuery(age: GreaterThan(value: 8))
In a URL it would translate to:
?age=8
Note: The “age=8” format is not an API but an implementation detail that could change in the future.
-
Creates a GreaterThan instance from a given Identifier value
Declaration
Swift
public init(value: I)
-
Creates a GreaterThan instance from a given String value
Declaration
Swift
public init(string value: String) throws
-
Returns the stored value
Declaration
Swift
public func getValue() -> I
-
Returns the stored value as a String
Declaration
Swift
public func getStringValue() -> String
-
Returns the Operator
Declaration
Swift
public func getOperator() -> Operator