Hey there everyone. First of all thanks for this challenging yet helpful courses.
I had an error message on my answer on $unwind lab challenge.
< deleted >
I found this answer on my aggregation.
1st - I matched for English and checked if cast array is exists.
2nd - Using $project I got my title,cast and imbd.rating fields.
3rd - Using $unwind I seperated cast array field.
4th - Using $group stage, I set my id to name, get the $sum of every movie count and got the avarage for imdb.rating.
5th - For the last stage I sorted numFilms in descending order and got the following answer above at the top of the list.
Is there anything I’ve done wrong in my pipeline. Thanks in advance!