Method Documents
Documents<TResult>(IAggregateFluent<NoPipelineInput>, AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TResult>>, IBsonSerializer<TResult>)
Appends a $documents stage to the pipeline.
public static IAggregateFluent<TResult> Documents<TResult>(this IAggregateFluent<NoPipelineInput> aggregate, AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TResult>> documents, IBsonSerializer<TResult> documentSerializer = null)
Parameters
aggregate
IAggregateFluent<NoPipelineInput>The aggregate.
documents
AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TResult>>The documents.
documentSerializer
IBsonSerializer<TResult>The document serializer.
Returns
- IAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResult
The type of the result.
Documents<TResult>(IAggregateFluent<NoPipelineInput>, IEnumerable<TResult>, IBsonSerializer<TResult>)
Appends a $documents stage to the pipeline.
public static IAggregateFluent<TResult> Documents<TResult>(this IAggregateFluent<NoPipelineInput> aggregate, IEnumerable<TResult> documents, IBsonSerializer<TResult> documentSerializer = null)
Parameters
aggregate
IAggregateFluent<NoPipelineInput>The aggregate.
documents
IEnumerable<TResult>The documents.
documentSerializer
IBsonSerializer<TResult>The document serializer.
Returns
- IAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResult
The type of the result.