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
$eqin MongoDB.Declaration
Swift
case equalTo(LCValueConvertible) - 
                  
                  
See
$nein MongoDB.Declaration
Swift
case notEqualTo(LCValueConvertible) - 
                  
                  
See
$ltin MongoDB.Declaration
Swift
case lessThan(LCValueConvertible) - 
                  
                  
See
$ltein MongoDB.Declaration
Swift
case lessThanOrEqualTo(LCValueConvertible) - 
                  
                  
See
$gtin MongoDB.Declaration
Swift
case greaterThan(LCValueConvertible) - 
                  
                  
See
$gtein MongoDB.Declaration
Swift
case greaterThanOrEqualTo(LCValueConvertible) - 
                  
                  
See
$inin MongoDB.Declaration
Swift
case containedIn(LCArrayConvertible) - 
                  
                  
See
$ninin MongoDB.Declaration
Swift
case notContainedIn(LCArrayConvertible) - 
                  
                  
See
$allin MongoDB.Declaration
Swift
case containedAllIn(LCArrayConvertible) - 
                  
                  
See
$sizein MongoDB.Declaration
Swift
case equalToSize(Int) - 
                  
                  
See
$nearSphere,$minDistanceand$maxDistancein MongoDB.Declaration
Swift
case locatedNear(LCGeoPoint, minimal: LCGeoPoint.Distance?, maximal: LCGeoPoint.Distance?) - 
                  
                  
See
$geoWithinand$boxin 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
$regexand$optionsin 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 
View on GitHub
Install in Dash
        Constraint Enumeration Reference