More complex aggregations
Cet exercice fait partie du cours
Text-to-Query Agents with MongoDB and LangGraph
Instructions
- Create the aggregation pipeline to list the top 5 movies with highest IMDB ratings consisting of
$sort,$limitand$projectstages. - Create the aggregation pipeline to find the top 5 directors by average IMDB rating, who have made at least 20 movies consisting of the
$unwind,$group,$match,$sortand$limitstages.
Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.
Exercice interactif pratique
Passez de la théorie à la pratique avec l’un de nos exercices interactifs
Commencer l’exercice