$first (aggregation)

$first

Returns the first value it encounters for its group .

注解

Only use $first when the $group follows an $sort operation. Otherwise, the result of this operation is unpredictable.

MongoDB Manual (Index)

关于

生态系统

格式

资源