Table of Contents

Class BaseFindOneOptions<T, TSort>

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

Base class for find-one operation options.

public abstract class BaseFindOneOptions<T, TSort> : CommandOptions where T : class where TSort : SortBuilder<T>

Type Parameters

T
TSort
Inheritance
BaseFindOneOptions<T, TSort>
Derived
Inherited Members

Properties

IncludeSimilarity

Whether to include similarity scores in the results.

public bool? IncludeSimilarity { get; set; }

Property Value

bool?

Projection

Projection to apply to the results.

public IProjectionBuilder Projection { get; set; }

Property Value

IProjectionBuilder

Sort

Sort order for the query.

public TSort Sort { get; set; }

Property Value

TSort