is there a way to do a single find based on a related collection in mongoose?

前端 未结 0 778
灰色年华
灰色年华 2020-12-10 12:50

for example I have Users and Posts.

User { 
  email: string
}
Post {
   user: { type: Schema.Types.ObjectId, ref: \'User\' }
}

I want to find

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