MongoDB Aggregate lookup in Go (mgo.v2)
问题 I'm trying to implement $lookup functionality in one of my mongoDB queries in go (golang) using the mgo package. Below are my collections: folders: "_id" : ObjectId("22222222222222"), "name" : "Media", "level" : 1, "userIDs": [ObjectId("4444444444444")] documents: "_id" : ObjectId("11111111111111"), "title" : "Media Management", "body" : BinData(0,"PvQ6z2NBm4265duo/e2XsYxA5bXKo="), "level" : 1, "folderID" : ObjectId("22222222222222"), // Foreign Key/Field "userIDs" : [ObjectId("44444444444444