Table of Contents

Method PopFirst

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

PopFirst(FieldDefinition<TDocument>)

Creates a pop operator.

public UpdateDefinition<TDocument> PopFirst(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

UpdateDefinition<TDocument>

A pop operator.

PopFirst(Expression<Func<TDocument, object>>)

Creates a pop first operator.

public UpdateDefinition<TDocument> PopFirst(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

UpdateDefinition<TDocument>

A pop first operator.