Method Set
Set<TResult, TFields>(IAggregateFluent<TResult>, Expression<Func<TResult, TFields>>)
Appends a $set stage to the pipeline.
public static IAggregateFluent<TResult> Set<TResult, TFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, TFields>> fields)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
fieldsExpression<Func<TResult, TFields>>The fields to set.
Returns
- IAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.
TFieldsThe type of object specifying the fields to set.