Table of Contents

Method Pull

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Pull<TItem>(FieldDefinition<TDocument>, TItem)

Creates a pull operator.

public UpdateDefinition<TDocument> Pull<TItem>(FieldDefinition<TDocument> field, TItem value)

Parameters

field FieldDefinition<TDocument>

The field.

value TItem

The value.

Returns

UpdateDefinition<TDocument>

A pull operator.

Type Parameters

TItem

The type of the item.

Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Creates a pull operator.

public UpdateDefinition<TDocument> Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, TItem value)

Parameters

field Expression<Func<TDocument, IEnumerable<TItem>>>

The field.

value TItem

The value.

Returns

UpdateDefinition<TDocument>

A pull operator.

Type Parameters

TItem

The type of the item.