inserting new field with $avg that uses different object names in mongodb

后端 未结 0 369
眼角桃花
眼角桃花 2020-11-30 04:31

Is it possible to insert new field with average of all ratings?

I have this method:

 Recipes.update({ _id: recipeId },{$set: { ["starRatingByUser.         


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