Table of Contents

Method PopLast

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

PopLast(FieldDefinition<TDocument>)

Creates a pop operator.

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

Parameters

field FieldDefinition<TDocument>

The field.

Returns

UpdateDefinition<TDocument>

A pop operator.

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

Creates a pop first operator.

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

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

UpdateDefinition<TDocument>

A pop last operator.