即使收到以下错误,我仍在使用最新版本的mongodb 3.6 ...
MongoError: The 'cursor' option is required, except for aggregate with the explain argument
const user = await User.aggregate([
{ $group: {
_id: '$_id',
domain: { $push: "$domain" },
domain: { $push: "$email" },
domain: { $push: "$userName" }
}
}
])
慕标琳琳
相关分类