MongoDb: find deeply nested object with $lookup
问题 I have collection like this: collection name is - account. and it has sub-documents like account > buildings > gateways > devices. { "_id" : ObjectId("5e1fe45cd05bfb0cc549297d"), "apiCallCount" : 0, "email" : "info@data.com", "password" : "dummy", "userName" : "AAAAA", "companyName" : "The AAAAAA", "apiKey" : "5e1fe45cd05bfb0cc549297c", "solutionType" : "VVVVVV", "parentCompany" : "", "buildings" : [ { "_id" : ObjectId("5e1fe5e3d05bfb0cc5494146"), "buildingName" : "xxxxxx", "address" : "xxx",