I want to, in accordance with the product category grouping (kind), ask god for helpCodePudding user response:
The mongoose. Aggregate ([{$group: {_id: "$kind"}}])CodePudding user response:
"Mongo calculation difficulty summarized this article about grouping query solution