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 <NoPipeline >Input The aggregate.
documents
AggregateExpression <NoDefinition Pipeline , IEnumerable<TResult>>Input The documents.
documentSerializer
IBsonSerializer <TResult>The document serializer.
Returns
- IAggregate
Fluent <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 <NoPipeline >Input The aggregate.
documents
IEnumerable<TResult>The documents.
documentSerializer
IBsonSerializer <TResult>The document serializer.
Returns
- IAggregate
Fluent <TResult> The fluent aggregate interface.
Type Parameters
TResult
The type of the result.