Method Facet
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Facet<TInput, TIntermediate, TOutput>(PipelineDefinition<TInput, TIntermediate>, IEnumerable<AggregateFacet>, AggregateFacetOptions)
Appends a $facet stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Facet<TInput, TIntermediate, TOutput>(this PipelineDefinition<TInput, TIntermediate> pipeline, IEnumerable<AggregateFacet<TIntermediate>> facets, AggregateFacetOptions<TOutput> options = null)Parameters
pipeline PipelineDefinition<TInput, TIntermediate>
The pipeline.
facets IEnumerable<AggregateFacet>
The facets.
options AggregateFacetOptions
The options.
Returns
PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TIntermediate
The type of the intermediate documents.
TOutput
The type of the output documents.
Facet<TInput, TIntermediate>(PipelineDefinition<TInput, TIntermediate>, IEnumerable<AggregateFacet>)
Appends a $facet stage to the pipeline.
public static PipelineDefinition<TInput, AggregateFacetResults> Facet<TInput, TIntermediate>(this PipelineDefinition<TInput, TIntermediate> pipeline, IEnumerable<AggregateFacet<TIntermediate>> facets)Parameters
pipeline PipelineDefinition<TInput, TIntermediate>
The pipeline.
facets IEnumerable<AggregateFacet>
The facets.
Returns
PipelineDefinition<TInput, AggregateFacetResults>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TIntermediate
The type of the intermediate documents.
Facet<TInput, TIntermediate>(PipelineDefinition<TInput, TIntermediate>, params AggregateFacet[])
Appends a $facet stage to the pipeline.
public static PipelineDefinition<TInput, AggregateFacetResults> Facet<TInput, TIntermediate>(this PipelineDefinition<TInput, TIntermediate> pipeline, params AggregateFacet<TIntermediate>[] facets)Parameters
pipeline PipelineDefinition<TInput, TIntermediate>
The pipeline.
facets AggregateFacet[]
The facets.
Returns
PipelineDefinition<TInput, AggregateFacetResults>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TIntermediate
The type of the intermediate documents.
Facet<TInput, TIntermediate, TOutput>(PipelineDefinition<TInput, TIntermediate>, params AggregateFacet[])
Appends a $facet stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Facet<TInput, TIntermediate, TOutput>(this PipelineDefinition<TInput, TIntermediate> pipeline, params AggregateFacet<TIntermediate>[] facets)Parameters
pipeline PipelineDefinition<TInput, TIntermediate>
The pipeline.
facets AggregateFacet[]
The facets.
Returns
PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TIntermediate
The type of the intermediate documents.
TOutput
The type of the output documents.