Navigation
This version of the documentation is archived and no longer supported.

$avg (aggregation)

$avg

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