-
Type:
Sub-task
-
Resolution: Done
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
Context
$setField conflicts with the existing SetField interface type in mql/agg/stage.go (used by the $set stage builder). Name the expression operator SetDocField instead.
Definition of Done
- All of the following operators are implemented in mql/agg/operator.go, each with a one-line doc comment:
-
- Object: $mergeObjects, $objectToArray, $bsonSize, $binarySize, $getField, $setField (as SetDocField), $unsetField (as UnsetDocField)
- Type conversion: $toBool, $toInt, $toLong, $toDouble, $toDecimal, $toString, $toObjectId, $toArray, $toObject, $type, $isNumber, $isArray, $subtype, $toHashedIndexKey, $convert
- Each operator has at least one test in mql/agg/operator_test.go