$sum on basis of grouping is not getting correct sum in mongodb rathar regrouping on field of sum?

前端 未结 0 1826
遥遥无期
遥遥无期 2021-02-11 00:48

I have a couple of collections from which i want to get top 6 selling brands.

Collection Products: //Visually this is how it looks on mongodb atlas

Collection Ord

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