IniziaInizia gratis

More complex aggregations

Questo esercizio fa parte del corso

Text-to-Query Agents with MongoDB and LangGraph

Visualizza il corso

Istruzioni dell'esercizio

  • Create the aggregation pipeline to list the top 5 movies with highest IMDB ratings consisting of $sort, $limit and $project stages.
  • 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, $sort and $limit stages.


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.


Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio