Table of Contents

Class CollectionFindOneAndReplaceOptions<T>

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

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

public class CollectionFindOneAndReplaceOptions<T> : BaseReplaceOneOptions<T, CollectionSortBuilder<T>> where T : class

Type Parameters

T
Inheritance
CollectionFindOneAndReplaceOptions<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 replacement.

public ReturnDocumentDirective? ReturnDocument { get; set; }

Property Value

ReturnDocumentDirective?