Method Facet
Facet<TNewResult>(IEnumerable<AggregateFacet<TResult>>, AggregateFacetOptions<TNewResult>)
Appends a $facet stage to the pipeline.
public virtual IAggregateFluent<TNewResult> Facet<TNewResult>(IEnumerable<AggregateFacet<TResult>> facets, AggregateFacetOptions<TNewResult> options = null)
Parameters
facets
IEnumerable<AggregateFacet <TResult>>The facets.
options
AggregateFacet <TNewResult>Options The options.
Returns
- IAggregate
Fluent <TNewResult> The fluent aggregate interface.
Type Parameters
TNewResult
The type of the new result.