How can I perform a join in mongodb when the foreign field is inside an array inside an object?

前端 未结 0 768
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 12:39

Consider collection1:

[
  {
    _id: "1",
    code: 4
  },
  {
    _id: "2",
    code: 5
  },
  {
    _id: "3",
    code: 4
  }
         


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