Table of Contents

Class CollectionFindOneAndUpdateOptions<T>

Namespace
DataStax.AstraDB.DataApi.Core.Query
Assembly
DataStax.AstraDB.DataApi.dll

Options for finding and updating a single document in a collection.

public sealed class CollectionFindOneAndUpdateOptions<T> : CollectionUpdateOneOptions<T> where T : class

Type Parameters

T
Inheritance
CollectionFindOneAndUpdateOptions<T>
Inherited Members

Properties

Projection

Define the projection to apply on the returned document.

public IProjectionBuilder Projection { get; set; }

Property Value

IProjectionBuilder

ReturnDocument

Whether to return the document before or after the update.

public ReturnDocumentDirective? ReturnDocument { get; set; }

Property Value

ReturnDocumentDirective?