Starting with MongoDB 5.0 the `$min` and `$max` operators can be used in more than just the `$group` stage. See documentation for full list: * https://docs.mongodb.com/manual/reference/operator/aggregation/max/ * https://docs.mongodb.com/manual/reference/operator/aggregation/min/