$avg Computes an average from an array of elements. Example¶ Template { "average": { "$avg": [1,2,3,4,5] } } Output { "average": 3.0 }