How can I get the fields from another mongodb collection and add those field values as an array in the current collection?

前端 未结 0 1500
遥遥无期
遥遥无期 2020-12-23 10:10

For example, I have two collections with the following data:

Collection 1:

{
code: 1,
name: "data1"
},
{
code: 2,
name: "data2"
}
<         


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