how to calculate totalPrice in orderSchema based on prodcts fields which stores id of product

前端 未结 0 384
南方客
南方客 2020-12-05 18:41

I have two schema productSchema and orderSchema. I want to calculate totalPrice from products field in orderSchema, but products field in orderSchema is ref type where id of

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