1 個回答
- 最新
- 最多得票
- 最多評論
0
What is the error message you are getting? From the syntax of what you provided, it looks like you are missing brackets around your multiply aggregation expressions.
'test': { $multiply: "$price", 8 }
...should be...
'test': { $multiply: ["$price", 8]}
See more here: https://docs.mongodb.com/manual/reference/operator/aggregation/multiply/
已回答 2 年前
相關內容
- 已提問 1 年前
- AWS 官方已更新 8 個月前
- AWS 官方已更新 8 個月前