Documentation ¶
Overview ¶
Package operator
Index ¶
Constants ¶
View Source
const ( Eq = "$eq" Gt = "$gt" Gte = "$gte" In = "$in" Lt = "$lt" Lte = "$lte" Ne = "$ne" Nin = "$nin" )
Comparison
View Source
const ( And = "$and" Not = "$not" Nor = "$nor" Or = "$or" )
Logical
View Source
const ( Exists = "$exists" Type = "$type" )
Element
View Source
const ( Expr = "$expr" JSONSchema = "$jsonSchema" Mod = "$mod" Regex = "$regex" Text = "$text" Where = "$where" )
Evaluation
View Source
const ( GeoIntersects = "$geoIntersects" GeoWithin = "$geoWithin" Near = "$near" NearSphere = "$nearSphere" )
Geo spatial
View Source
const ( All = "$all" ElemMatch = "$elemMatch" Size = "$size" )
Array
View Source
const ( BitsAllClear = "$bitsAllClear" BitsAllSet = "$bitsAllSet" BitsAnyClear = "$bitsAnyClear" BitsAnySet = "$bitsAnySet" )
Bitwise
View Source
const ( Dollar = "$" // ElemMatch = "$elemMatch" // Declared Meta = "$meta" Slice = "$slice" )
Projection operators
View Source
const ( // Comment = "$comment" // Declared Explain = "$explain" Hint = "$hint" // Max = "$max" // Declared MaxTimeMS = "$maxTimeMS" // Min = "$min" // Declared OrderBy = "$orderby" Query = "$query" ReturnKey = "$returnKey" ShowDiskLoc = "$showDiskLoc" )
Modifiers
View Source
const ( CurrentDate = "$currentDate" Inc = "$inc" Min = "$min" Max = "$max" Mul = "$mul" Rename = "$rename" Set = "$set" SetOnInsert = "$setOnInsert" Unset = "$unset" )
Fields
View Source
const ( AddToSet = "$addToSet" Pop = "$pop" Pull = "$pull" Push = "$push" PullAll = "$pullAll" )
Array Operators
View Source
const ( Each = "$each" Position = "$position" // Slice = "$slice" // Declared Sort = "$sort" )
Array modifiers
View Source
const ( AddFields = "$addFields" Bucket = "$bucket" BucketAuto = "$bucketAuto" CollStats = "$collStats" Count = "$count" Facet = "$facet" GeoNear = "$geoNear" GraphLookup = "$graphLookup" Group = "$group" IndexStats = "$indexStats" Limit = "$limit" ListSessions = "$listSessions" Lookup = "$lookup" Match = "$match" Merge = "$merge" Out = "$out" PlanCacheStats = "$planCacheStats" Project = "$project" Redact = "$redact" ReplaceRoot = "$replaceRoot" ReplaceWith = "$replaceWith" Sample = "$sample" // Set = "$set" // Declared Skip = "$skip" // Sort = "$sort" // Declared SortByCount = "$sortByCount" // Unset = "$unset" // Declared Unwind = "$unwind" )
Collection aggregation Stages
View Source
const ( CurrentOp = "$currentOp" ListLocalSessions = "$listLocalSessions" )
DB Aggregate stages
View Source
const ( Abs = "$abs" Add = "$add" Ceil = "$ceil" Divide = "$divide" Exp = "$exp" Floor = "$floor" Ln = "$ln" Log = "$log" Log10 = "$log10" // Mod = "$mod" // Declared Multiply = "$multiply" Pow = "$pow" Round = "$round" Sqrt = "$sqrt" Subtract = "$subtract" Trunc = "$trunc" )
Arithmetic Expression Operators
View Source
const ( ArrayToObject = "$arrayToObject" ConcatArrays = "$concatArrays" Filter = "$filter" // In = "$in" // Declared IndexOfArray = "$indexOfArray" IsArray = "$isArray" Map = "$map" ObjectToArray = "$objectToArray" Range = "$range" Reduce = "$reduce" ReverseArray = "$reverseArray" // Size = "$size" // Declared // Slice = "$slice" // Declared Zip = "$zip" )
Array Expression Operators
View Source
const ( Cond = "$cond" IfNull = "$ifNull" Switch = "$switch" )
Conditional Expression Operators
View Source
const ( DateFromParts = "$dateFromParts" DateFromString = "$dateFromString" DateToParts = "$dateToParts" DateToString = "$dateToString" DayOfMonth = "$dayOfMonth" DayOfWeek = "$dayOfWeek" DayOfYear = "$dayOfYear" Hour = "$hour" IsoDayOfWeek = "$isoDayOfWeek" IsoWeek = "$isoWeek" IsoWeekYear = "$isoWeekYear" Millisecond = "$millisecond" Minute = "$minute" Month = "$month" Second = "$second" ToDate = "$toDate" Week = "$week" Year = "$year" )
Date Expression Operators
View Source
const ( AllElementsTrue = "$allElementsTrue" AnyElementTrue = "$anyElementTrue" SetDifference = "$setDifference" SetEquals = "$setEquals" SetIntersection = "$setIntersection" SetIsSubset = "$setIsSubset" SetUnion = "$setUnion" )
Set Expression Operators
View Source
const ( Concat = "$concat" // DateFromString = "$dateFromString" // Declared // DateToString = "$dateToString" // Declared IndexOfBytes = "$indexOfBytes" IndexOfCP = "$indexOfCP" Ltrim = "$ltrim" RegexFind = "$regexFind" RegexFindAll = "$regexFindAll" RegexMatch = "$regexMatch" Rtrim = "$rtrim" Split = "$split" StrLenBytes = "$strLenBytes" StrLenCP = "$strLenCP" Strcasecmp = "$strcasecmp" Substr = "$substr" SubstrBytes = "$substrBytes" SubstrCP = "$substrCP" ToLower = "$toLower" ToString = "$toString" Trim = "$trim" ToUpper = "$toUpper" )
String Expression Operators
View Source
const ( Sin = "$sin" Cos = "$cos" Tan = "$tan" Asin = "$asin" Acos = "$acos" Atan = "$atan" Atan2 = "$atan2" Asinh = "$asinh" Acosh = "$acosh" Atanh = "$atanh" DegreesToRadians = "$degreesToRadians" RadiansToDegrees = "$radiansToDegrees" )
Trigonometry Expression Operators
View Source
const ( Convert = "$convert" ToBool = "$toBool" //ToDate = "$toDate" // Declared ToDecimal = "$toDecimal" ToDouble = "$toDouble" ToInt = "$toInt" ToLong = "$toLong" ToObjectID = "$toObjectId" )
Type Expression Operators
View Source
const ( // AddToSet = "$addToSet" // Declared Avg = "$avg" First = "$first" Last = "$last" // Max = "$max" // Declared // MergeObjects = "$mergeObjects" // Declared // Min = "$min" // Declared // Push = "$push" // Declared StdDevPop = "$stdDevPop" StdDevSamp = "$stdDevSamp" Sum = "$sum" )
Accumulators ($group)
View Source
const (
Bit = "$bit"
)
Array bitwise
View Source
const (
Cmp = "$cmp"
)
Comparison Expression Operators
View Source
const (
Comment = "$comment"
)
Comments
View Source
const (
Let = "$let"
)
Variable Expression Operators
View Source
const (
Literal = "$literal"
)
Literal Expression Operator
View Source
const (
MergeObjects = "$mergeObjects"
)
Object Expression Operators
View Source
const (
Natural = "$natural"
)
Sort Order
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.