Table of Contents

Method Push

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

Push(string, BsonValue)

Adds a value to the end of the named array element (see $push).

public UpdateBuilder Push(string name, BsonValue value)

Parameters

name string

The name of the array element.

value BsonValue

The value to add to the end of the array.

Returns

UpdateBuilder

The builder (so method calls can be chained).