Facet constructor

Facet(
  1. Map<String, List<AggregationStage>> pipelines
)

Creates $facet aggregation stage

Implementation

Facet(Map<String, List<AggregationStage>> pipelines)
    : super(
          'facet',
          AEObject(pipelines
              .map((field, stages) => MapEntry(field, AEList(stages)))));