Table of Contents

Property DistanceField

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

DistanceField

Gets or sets the output field that contains the calculated distance. Required if querying a time-series collection. Optional for non-time series collections in MongoDB 8.1+

public FieldDefinition<TOutputDocument> DistanceField { get; set; }

Property Value

FieldDefinition<TOutputDocument>