Table of Contents

Method Pull

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

Pull(string, BsonValue)

Removes all values from the named array element that are equal to some value (see $pull).

public static UpdateBuilder Pull(string name, BsonValue value)

Parameters

name string

The name of the array element.

value BsonValue

The value to remove.

Returns

UpdateBuilder

The builder (so method calls can be chained).

Pull(string, IMongoQuery)

Removes all values from the named array element that match some query (see $pull).

public static UpdateBuilder Pull(string name, IMongoQuery query)

Parameters

name string

The name of the array element.

query IMongoQuery

A query that specifies which elements to remove.

Returns

UpdateBuilder

The builder (so method calls can be chained).