Concept Flow - $min and $max accumulators
Start Aggregation Pipeline
Group Documents by _id
Apply $min and $max on Fields
Calculate Minimum and Maximum Values
Output Grouped Result with Min and Max
End
The aggregation groups documents, then calculates minimum and maximum values for specified fields using $min and $max accumulators.
