$Sum nested array in mongodb and update a field

前端 未结 0 1843
不思量自难忘°
不思量自难忘° 2020-11-30 17:38

I need to sum all price*quantity of product array and update total amount field. I can use for loop but i dont think thats an ideal way to do this in mongodb. Anbody who kno

相关标签:
回答
  • 消灭零回复
提交回复
热议问题