Method ReplaceWith
ReplaceWith<TNewResult>(AggregateExpressionDefinition<TResult, TNewResult>)
Appends a $replaceWith stage to the pipeline.
public virtual IAggregateFluent<TNewResult> ReplaceWith<TNewResult>(AggregateExpressionDefinition<TResult, TNewResult> newRoot)
Parameters
newRoot
AggregateExpression <TResult, TNewResult>Definition The new root.
Returns
- IAggregate
Fluent <TNewResult> The fluent aggregate interface.
Type Parameters
TNewResult
The type of the new result.