Mongodb group by certain attribute of schema

前端 未结 0 1729

I am using a MERN stack and need to group by certain attribute of schema, so for example: this is my schema,

   const likeSchema = new mongoose.Schema({
   userId         


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