Navigation
This version of the manual is no longer supported.

$avg (aggregation)

$avg

Returns the average of all the values of the field in all documents selected by this group.