📅  最后修改于: 2022-03-11 15:02:44.490000             🧑  作者: Mango
myDataBase.aggregate(pipeline)
.toArray()
.then(respond => {
return respond == null ? res.json([]) : res.json(respond);
})