Home > database >  Mongoose how to implement grouping query?
Mongoose how to implement grouping query?

Time:09-25

I want to, in accordance with the product category grouping (kind), ask god for help

CodePudding user response:

The mongoose. Aggregate ([{$group: {_id: "$kind"}}])

CodePudding user response:

"Mongo calculation difficulty summarized this article about grouping query solution
  • Related