Table of Contents

Method Min

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

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 TMember

The value to use.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

Type Parameters

TMember

The type of the member.