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년 전