Table of Contents

Method Densify

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Densify<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, object>>, DensifyRange, IEnumerable<Expression<Func<TResult, object>>>)

Appends a $densify stage to the pipeline.

public static IAggregateFluent<TResult> Densify<TResult>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, object>> field, DensifyRange range, IEnumerable<Expression<Func<TResult, object>>> partitionByFields = null)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

field Expression<Func<TResult, object>>

The field.

range DensifyRange

The range.

partitionByFields IEnumerable<Expression<Func<TResult, object>>>

The partition by fields.

Returns

IAggregateFluent<TResult>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.

Densify<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, object>>, DensifyRange, params Expression<Func<TResult, object>>[])

Appends a $densify stage to the pipeline.

public static IAggregateFluent<TResult> Densify<TResult>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, object>> field, DensifyRange range, params Expression<Func<TResult, object>>[] partitionByFields)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

field Expression<Func<TResult, object>>

The field.

range DensifyRange

The range.

partitionByFields Expression<Func<TResult, object>>[]

The partition by fields.

Returns

IAggregateFluent<TResult>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.