Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
Description
To function properly, the nested expressions need to formatted in correct JSON, enclosed in their own objects.
The documentation shows the following short example:
$add:[5, $divide:[12, 2], 7]
|
To render correctly, the $divide command must be an object:
$add:[5, { $divide:[12, 2] }, 7]
|
Example: https://gist.github.com/2024712
Current location of documentation piece: http://www.mongodb.org/display/DOCS/Aggregation+Framework+-+Expression+Reference#AggregationFramework-ExpressionReference-Composition