_:n4bf5cc5950ef4431a873eb8f628d6500xb0
<http://schema.org/text>
"db.gamescores.aggregate( [\n   {\n      $match : { gameId : \"G1\" }\n   },\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/>