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
aggregateIAggregateFluent<NoPipelineInput>The aggregate.
documentsAggregateExpressionDefinition<NoPipelineInput, IEnumerable<TResult>>The documents.
documentSerializerIBsonSerializer<TResult>The document serializer.
Returns
- IAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResultThe 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
aggregateIAggregateFluent<NoPipelineInput>The aggregate.
documentsIEnumerable<TResult>The documents.
documentSerializerIBsonSerializer<TResult>The document serializer.
Returns
- IAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.