Table of Contents

Method PullAll

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

PullAll<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)

Creates a pull operator.

public UpdateDefinition<TDocument> PullAll<TItem>(FieldDefinition<TDocument> field, IEnumerable<TItem> values)

Parameters

field FieldDefinition<TDocument>

The field.

values IEnumerable<TItem>

The values.

Returns

UpdateDefinition<TDocument>

A pull operator.

Type Parameters

TItem

The type of the item.

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

Creates a pull operator.

public UpdateDefinition<TDocument> PullAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, IEnumerable<TItem> values)

Parameters

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

The field.

values IEnumerable<TItem>

The values.

Returns

UpdateDefinition<TDocument>

A pull operator.

Type Parameters

TItem

The type of the item.