Method Facet
Facet<TInput, TOutput>(IEnumerable<AggregateFacet<TInput>>, AggregateFacetOptions<TOutput>)
Creates a $facet stage.
public static PipelineStageDefinition<TInput, TOutput> Facet<TInput, TOutput>(IEnumerable<AggregateFacet<TInput>> facets, AggregateFacetOptions<TOutput> options = null)
Parameters
facets
IEnumerable<AggregateFacet <TInput>>The facets.
options
AggregateFacet <TOutput>Options The options.
Returns
- Pipeline
Stage <TInput, TOutput>Definition The stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.
Facet<TInput>(IEnumerable<AggregateFacet<TInput>>)
Creates a $facet stage.
public static PipelineStageDefinition<TInput, AggregateFacetResults> Facet<TInput>(IEnumerable<AggregateFacet<TInput>> facets)
Parameters
facets
IEnumerable<AggregateFacet <TInput>>The facets.
Returns
- Pipeline
Stage <TInput, AggregateDefinition Facet >Results The stage.
Type Parameters
TInput
The type of the input documents.
Facet<TInput>(params AggregateFacet<TInput>[])
Creates a $facet stage.
public static PipelineStageDefinition<TInput, AggregateFacetResults> Facet<TInput>(params AggregateFacet<TInput>[] facets)
Parameters
facets
AggregateFacet <TInput>[]The facets.
Returns
- Pipeline
Stage <TInput, AggregateDefinition Facet >Results The stage.
Type Parameters
TInput
The type of the input documents.
Facet<TInput, TOutput>(params AggregateFacet<TInput>[])
Creates a $facet stage.
public static PipelineStageDefinition<TInput, TOutput> Facet<TInput, TOutput>(params AggregateFacet<TInput>[] facets)
Parameters
facets
AggregateFacet <TInput>[]The facets.
Returns
- Pipeline
Stage <TInput, TOutput>Definition The stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.