Created
June 1, 2022 14:45
-
-
Save sourabhbagrecha/c99e935d90cb57c9874b0929ebd5383d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"$match": { | |
"extra_runs": { "$gt": 0 } | |
} | |
}, | |
{ | |
"$group": { | |
"_id": "$extras_type", | |
"runs": { | |
"$sum": "$extra_runs" | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment