1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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/
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr