Table of Contents

Class FindOneAndUpdateOptions<TDocument, TProjection>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Options for a findAndModify command to update an object.

public class FindOneAndUpdateOptions<TDocument, TProjection>

Type Parameters

TDocument

The type of the document.

TProjection

The type of the projection (same as TDocument if there is no projection).

Inheritance
FindOneAndUpdateOptions<TDocument, TProjection>
Derived
Inherited Members

Constructors

FindOneAndUpdateOptions()

Initializes a new instance of the FindOneAndUpdateOptions<TDocument, TProjection> class.

Properties

ArrayFilters

Gets or sets the array filters.

BypassDocumentValidation

Gets or sets a value indicating whether to bypass document validation.

Collation

Gets or sets the collation.

Comment

Gets or sets the comment.

Hint

Gets or sets the hint.

IsUpsert

Gets or sets a value indicating whether to insert the document if it doesn't already exist.

Let

Gets or sets the let document.

MaxTime

Gets or sets the maximum time.

Projection

Gets or sets the projection.

ReturnDocument

Gets or sets which version of the document to return.

Sort

Gets or sets the sort.