Table of Contents

Method Min

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

Min(string, BsonValue)

Updates the named element if and only if the provided value is less than its current value (see $max).

public UpdateBuilder Min(string name, BsonValue value)

Parameters

name string

The name of the element to be updated.

value BsonValue

The value to use.

Returns

UpdateBuilder

The builder (so method calls can be chained).