如何在MongoDB中联接两个主表

时间:2018-07-03 17:50:21

标签: database mongodb nosql

我有两个主表“理事会”和“业务区”。我想将市议会主管的市议会ID存储到businessArea中的市议会RefID中。有没有办法在MongoDB中执行关系过程?

示例

businessArea

  _id: 5b353032bac38936f08a79be
  businessAreaName:"INFRA-APP"
  businessAreaDispl "INFRA-Application Services"
  councilRefID:5b3b8195af99fa07b84785a4

理事会:

  _id:5b3b8195af99fa07b84785a4
  councilName:"Sales and Marketing"
  councilDisplay:""

0 个答案:

没有答案