Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
NA
*Location*: https://docs.mongodb.org/manual/reference/operator/aggregation/map/#exp._S_map
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
*Referrer*: https://docs.mongodb.org/manual/reference/operator/aggregation-projection/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/aggregation/map
NA *Location*: https://docs.mongodb.org/manual/reference/operator/aggregation/map/#exp._S_map *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 *Referrer*: https://docs.mongodb.org/manual/reference/operator/aggregation-projection/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/operator/aggregation/map
Description
NB, Correction for https://jira.mongodb.org/browse/DOCS-7367
I think the $add below should be a $mul.
db.sales.aggregate( [
{
$project: {
finalTotal: {
$let: {
vars: {
total:
,
discounted: { $cond:
}
},
in:
}
}
}
}
] )
Attachments
Issue Links
- is duplicated by
-
DOCS-7367 Comment on: "manual/reference/operator/aggregation/map.txt"
-
- Closed
-