Constraint
public enum Constraint
Constraint for key.
-
The value of the key contains all metadata; Supporting key path by concatenating multiple keys with
.
.Declaration
Swift
case included
-
Only the value of the key will return, prefixing the key with
-
means only the value of the key will not return; Supporting key path by concatenating multiple keys with.
.Declaration
Swift
case selected
-
Whether the field exist.
Declaration
Swift
case existed
-
Whether the field not exist.
Declaration
Swift
case notExisted
-
See
$eq
in MongoDB.Declaration
Swift
case equalTo(LCValueConvertible)
-
See
$ne
in MongoDB.Declaration
Swift
case notEqualTo(LCValueConvertible)
-
See
$lt
in MongoDB.Declaration
Swift
case lessThan(LCValueConvertible)
-
See
$lte
in MongoDB.Declaration
Swift
case lessThanOrEqualTo(LCValueConvertible)
-
See
$gt
in MongoDB.Declaration
Swift
case greaterThan(LCValueConvertible)
-
See
$gte
in MongoDB.Declaration
Swift
case greaterThanOrEqualTo(LCValueConvertible)
-
See
$in
in MongoDB.Declaration
Swift
case containedIn(LCArrayConvertible)
-
See
$nin
in MongoDB.Declaration
Swift
case notContainedIn(LCArrayConvertible)
-
See
$all
in MongoDB.Declaration
Swift
case containedAllIn(LCArrayConvertible)
-
See
$size
in MongoDB.Declaration
Swift
case equalToSize(Int)
-
See
$nearSphere
,$minDistance
and$maxDistance
in MongoDB.Declaration
Swift
case locatedNear(LCGeoPoint, minimal: LCGeoPoint.Distance?, maximal: LCGeoPoint.Distance?)
-
See
$geoWithin
and$box
in MongoDB.Declaration
Swift
case locatedWithin(southwest: LCGeoPoint, northeast: LCGeoPoint)
-
The value of the key match the query.
Declaration
Swift
case matchedQuery(LCQuery)
-
The value of the key not match the query.
Declaration
Swift
case notMatchedQuery(LCQuery)
-
See
$regex
and$options
in MongoDB.Declaration
Swift
case matchedRegularExpression(String, option: String?)
-
The string of the key contains the string.
Declaration
Swift
case matchedSubstring(String)
-
The string of the key has the prefix.
Declaration
Swift
case prefixedBy(String)
-
The string of the key has the suffix.
Declaration
Swift
case suffixedBy(String)
-
Relation
Declaration
Swift
case relatedTo(LCObject)
-
Ascending
Declaration
Swift
case ascending
-
Descending
Declaration
Swift
case descending