1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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/
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an