sum method

Map<String, dynamic> sum(
  1. String field
)

Implementation

static Map<String, dynamic> sum(String field) {
  return {"\$sum": "\$$field"};
}