PipelineStage.group constructor

PipelineStage.group(
  1. String groupByField,
  2. {Map<String, dynamic> accumulators}
)

Implementation

PipelineStage.group(String groupByField,
    {Map<String, dynamic> accumulators}) {
  var map = <String, dynamic>{
    "_id": "\$$groupByField",
  };
  map.addAll(accumulators);

  _addExpression("\$group", map);
}