Table of Contents

Class CollectionUpdateOneOptions<T>

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

Options for updating a single document in a collection.

public class CollectionUpdateOneOptions<T> : BaseUpdateOneOptions where T : class

Type Parameters

T
Inheritance
CollectionUpdateOneOptions<T>
Derived
Inherited Members

Properties

Sort

Sort order for determining which document to update when multiple match the filter.

public CollectionSortBuilder<T> Sort { get; set; }

Property Value

CollectionSortBuilder<T>

Upsert

Whether to insert a new document if the filter does not match any documents.

public bool Upsert { get; set; }

Property Value

bool