So the situation is, i have a students and teachers collection,
each student object has a property called fav which is an array of ObjectId referring to documents in teachers collection,
Now i wanna find out most occurring teacher among all students fav property How can i do that ??
How can I use mongoose aggregation to work my way around this ??
I have tried couple of solutions but doesnt work very been stuck on this for a while now,