I think I found and error in : https://university.mongodb.com/mercury/M121/2020_September_15/chapter/Chapter_2_Basic_Aggregation_-_Utility_Stages/lesson/59717df5ae30dca675107b24/answer
The detailed step:
Then, we will be projecting the num_favs value by calculating the $size of the array intersection, between the given set of favorites and the film cast:
It’s not related to the problem, it should be:
Edit: Deleted the aggregation pipeline.