Table of Contents

Method Create

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Create<TInput, TOutput>(string, PipelineDefinition<TInput, TOutput>)

Creates a new instance of the AggregateFacet<TInput, TOutput> class.

public static AggregateFacet<TInput, TOutput> Create<TInput, TOutput>(string name, PipelineDefinition<TInput, TOutput> pipeline)

Parameters

name string

The facet name.

pipeline PipelineDefinition<TInput, TOutput>

The facet pipeline.

Returns

AggregateFacet<TInput, TOutput>

A new instance of the AggregateFacet<TInput, TOutput> class

Type Parameters

TInput

The type of the input documents.

TOutput

The type of the output documents.