How to perform sofisticated grouping and aggregation in pipeline?

If one has to perform aggregation with grouping and join how to approach that. also multiple collections.

$lookup

1 Like