📅  最后修改于: 2022-03-11 14:55:35.408000             🧑  作者: Mango
代码示例1
db.temp.aggregate([
{$group: {
_id: "$total_wins",
my_winner: {$push: "$$ROOT"}
}},
{$sort:{_id:-1}},
{$limit:1} ]).pretty()