Method Documents
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Documents(AggregateExpressionDefinition<NoPipelineInput, IEnumerable>, IBsonSerializer)
Creates a $documents stage.
public static PipelineStageDefinition<NoPipelineInput, TDocument> Documents<TDocument>(AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TDocument>> documents, IBsonSerializer<TDocument> documentSerializer = null)Parameters
documents AggregateExpressionDefinition<NoPipelineInput, IEnumerable>
The documents.
documentSerializer IBsonSerializer
The document serializer.
Returns
PipelineStageDefinition<NoPipelineInput, TDocument>
The stage.
Type Parameters
TDocument
The type of the documents.
Documents(IEnumerable, IBsonSerializer)
Creates a $documents stage.
public static PipelineStageDefinition<NoPipelineInput, TDocument> Documents<TDocument>(IEnumerable<TDocument> documents, IBsonSerializer<TDocument> documentSerializer = null)Parameters
documents IEnumerable
The documents.
documentSerializer IBsonSerializer
The document serializer.
Returns
PipelineStageDefinition<NoPipelineInput, TDocument>
The stage.
Type Parameters
TDocument
The type of the documents.