$last (aggregation)

$last

Returns the last value it encounters for its group.

注解

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

MongoDB Manual (Index)

关于

生态系统

格式

资源