Mongodb, aggregate query with $lookup

后端 未结 2 2037
故里飘歌
故里飘歌 2020-12-05 12:05

Got two collecetions, tags and persons.

tags model:

{
  en: String,
  sv: String
}

person model:

{
  name: String,         


        
2条回答
  •  感情败类
    2020-12-05 12:35

    If you are using MongoDb version 3.2 then you can use $lookup which performs an left outer join.

提交回复
热议问题