Closed wotmshuaisi closed 4 years ago
operations like
db.test.aggregate([
{
$group: {
_id: "id",
infoArr: {$push: "$info"}
}
},
{
$project: {
id: "$_id",
infoArr: 1,
}
}
])
In what sense?