Computes the average of some ManagedObject property.
selector identifies the property being averaged, e.g.
var query = Query<User>(); var averageAge = await query.reduce.average((user) => user.age);
The property must be an attribute and its type must be an
Future<double> average(num selector(T object));