_:n90991a412da34cc9b144f5809f002420xb0
<http://schema.org/text>
"db.gamescores.aggregate( [\n   {\n      $group:\n      {\n         _id: \"$gameId\",\n         minScores:\n            {\n               $minN:\n                  {\n                     input: [\"$score\",\"$playerId\"],\n                     n: 3\n                  }\n            }\n      }\n   }\n] )"
<https://www.mongodb.com/docs/v7.0/reference/operator/aggregation/minN/>