Created
March 1, 2022 07:36
-
-
Save Rishabh570/e6bf29bcd2447922f4ccfcd750a74bde 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
{ | |
"$sort": { | |
"release_year": 1, | |
"rating": -1 | |
} | |
}, | |
{ | |
"$group": { | |
"_id": "$release_year", | |
"highestRating": { | |
"$first": "$rating" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment