Method Max
Max<TMember>(Expression<Func<TDocument, TMember>>, TMember)
Updates the named element if and only if the provided value is greater than its current value (see $max).
public UpdateBuilder<TDocument> Max<TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression.
value
TMemberThe value to use.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TMember
The type of the member.