Community Day Trivia #34: In MongoDB 5.0, what aggregation stage groups documents into windows and applies one or more operators to each grouping?

We’ll be posting trivia challenges throughout the Community Day event!

The best answer for each challenge will be marked as a solution and earn the poster a promo code for $100 of Atlas credits and a Community Day 2021 Trivia Winner forum badge that can also be used as a title on the forums.

A great answer will include some information such as a link to more information or a tip on how you figured out the solution.

You can help us decide the best answer to a trivia challenge by liking great responses! To give everyone a chance at earning Atlas credits, we will use “have you already had a trivia solution accepted” to break ties in favour of those who haven’t had a solution yet.

In MongoDB 5.0, what aggregation stage groups documents into windows and applies one or more operators to each grouping?

$setWindowFields

1 Like

Thanks @Michael_Grayson!

If anyone is interested to see how this feature is used, there are several great Documents Window Examples on the $setWindowFields reference page.

Regards,
Stennie