Method ReplaceWith
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
ReplaceWith(AggregateExpressionDefinition<TResult, TNewResult>)
Appends a $replaceWith stage to the pipeline.
IAggregateFluent<TNewResult> ReplaceWith<TNewResult>(AggregateExpressionDefinition<TResult, TNewResult> newRoot)
Parameters
newRoot
AggregateExpressionDefinition<TResult, TNewResult>
The new root.
Returns
The fluent aggregate interface.
Type Parameters
TNewResult
The type of the new result.