average method

AggregateField average(
  1. JSAny field
)

Create an AggregateField object that can be used to compute the average of a specified field over a range of documents in the result set of a query. @param field Specifies the field to average across the result set.

Implementation

external AggregateField average(JSAny field);