Operation
enum Operation
Property-value query operations used for matching patterns on either “sys” or “fields” properties of assets and entries.
Each operation specifies a property name on the left-hand side, with a value to match on the right.
For instance, using the .doesNotEqual
operation in an a concrete Query
like:
Query(where:"fields.name", .doesNotEqual("Happy Cat"))
would append the following to the http URL:
"fields.name[ne]=Happy%20Cat"
Refer to the documentation for the various Query classes for more information.
-
The equality operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/equality-operator
Declaration
Swift
case equals(String)
-
The inequality operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/inequality-operator
Declaration
Swift
case doesNotEqual(String)
-
Query by matching all of the values in the set: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/array-with-multiple-values
Declaration
Swift
case hasAll([String])
-
The inclusion operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/inclusion
Declaration
Swift
case includes([String])
-
The exclusion operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/exclusion
Declaration
Swift
case excludes([String])
-
The existence operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/existence
Declaration
Swift
case exists(Bool)
-
Full text search on a field.
Declaration
Swift
case matches(String)
-
Less-than operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isLessThan(QueryableRange)
-
Less-than-or-equal-to operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isLessThanOrEqualTo(QueryableRange)
-
Greater-than operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isGreaterThan(QueryableRange)
-
Greater-than-or-equal-to operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isGreaterThanOrEqualTo(QueryableRange)
-
Equivalent to the less-than operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isBefore(QueryableRange)
-
Equivalent to the greater-than operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/ranges
Declaration
Swift
case isAfter(QueryableRange)
-
Location proximity search: <https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/location-proximity-search
Declaration
Swift
case isNear(Location)
-
Location within bounding box operator: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/locations-in-a-bounding-object
Declaration
Swift
case isWithin(Bounds)