how to merge two collections in mongoDB with aggregate being the foreignKey inseide Object

前端 未结 0 1449
眼角桃花
眼角桃花 2021-01-14 19:21

I need help with this. I\'m tryin to merge two collections by aggregate method. The models are as follows:

model collection1

{
_id: \'123456\',
userId:         


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