Ticket: User Report troubles (resolved)

I had a lot of trouble with this assignment because I had not paid attention to this part, in the mostActiveCommenters() commentary.

You can do this by counting the number of occurrences of a user’s email in the comments collection.

Days of combing through the manual, trying to cobble together a complicated pipeline chain. Because I, too smart to read carefully, was trying to apply the pipeline to the user collection.

Do not do this. Hope that helps.

1 Like

After getting the comments counts from comments collection by applying three stages $group,$sort,$count in this order what next?