Expression Operator Overview
Fluxion mirrors MongoDB aggregation operators so you can compose complex transformations inside $project, $addFields, $group, and other stages. Browse the categories below, then use the sidebar for the complete alphabetical list.
Comparison & Logic
- $eq, $ne, $gt, $gte, $lt, $lte
- Set membership: $in, $nin
- Logical helpers: $and, $or, $not, $switch, $ifNull
Math & Numeric
- Arithmetic: $add, $subtract, $multiply, $divide, $mod
- Rounding: $ceil, $floor, $round, $trunc
- Advanced math: $pow, $sqrt, $exp, $ln, $log10
Array Utilities
- Transformation: $map, $filter, $reduce
- Structure: $concatArrays, $arrayElemAt, $zip
- Analysis: $size, $slice, $reverseArray
String Processing
- Case & trimming: $toLower, $toUpper, $trim, $ltrim, $rtrim
- Substrings: $substr, $substrBytes, $substrCP
- Matching: $split, $strcasecmp, $regexMatch
Date & Time
- Conversion and extraction: $toDate (covers
$year,$month,$week, etc. through options). - Differences and arithmetic: $add with date operands, $subtract, and $convert.
Type & Object Utilities
- Conversion: $convert, $toInt, $toDouble, $toBool, $toString
- Inspection: $type, $literal
- Object helpers: $getField, $setField, $unsetField, $mergeObjects, $objectToArray, $arrayToObject
Special Execution
- $function for JavaScript-style custom logic with
body,args, and optionallang.
Looking for something specific? Use the search box or the alphabetical list in the sidebar to jump straight to the operator you need.