Method Min
Min<TMember>(Expression<Func<TDocument, TMember>>, TMember)
Updates the named element if and only if the provided value is less than its current value (see $max).
public UpdateBuilder<TDocument> Min<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.