Hello
I have a dataset of movies and i want to show which is the year or years with most number of films
Could you help me with the code?
Thanks in advance
Hello
I have a dataset of movies and i want to show which is the year or years with most number of films
Could you help me with the code?
Thanks in advance
This looks like a course exercise of some sort.
If not share some of your documents from the collections.
Take a look at $group with the $count accumulator. The other things needed will be $sort and $limit.