Table of Contents

Method PopFirst

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

PopFirst<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>)

Removes the first value from the named array element (see $pop).

public UpdateBuilder<TDocument> PopFirst<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression)

Parameters

memberExpression Expression<Func<TDocument, IEnumerable<TValue>>>

The member expression.

Returns

UpdateBuilder<TDocument>

The builder (so method calls can be chained).

Type Parameters

TValue

The type of the enumerable member values.