Click or drag to resize

PipelineStageDefinitionBuilderDocumentsTDocument Method (AggregateExpressionDefinitionNoPipelineInput, IEnumerableTDocument, IBsonSerializerTDocument)

Creates a $documents stage.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public static PipelineStageDefinition<NoPipelineInput, TDocument> Documents<TDocument>(
	AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TDocument>> documents,
	IBsonSerializer<TDocument> documentSerializer = null
)

Parameters

documents
Type: MongoDB.DriverAggregateExpressionDefinitionNoPipelineInput, IEnumerableTDocument
The documents.
documentSerializer (Optional)
Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The document serializer.

Type Parameters

TDocument
The type of the documents.

Return Value

Type: PipelineStageDefinitionNoPipelineInput, TDocument
The stage.
See Also