Class GeoNearOperation<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents the geoNear command.
Type Parameters
TResult
The type of the result.
- Inheritance
-
GeoNearOperation<TResult>
- Implements
-
IRead
Operation <TResult>
- Inherited Members
- Extension Methods
Constructors
- GeoNearOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoNearOperation<TResult> class.
Properties
- Collation
Gets or sets the collation.
- Collection
Namespace Gets the collection namespace.
- Distance
Multiplier Gets or sets the distance multiplier.
- Filter
Gets or sets the filter.
- Include
Locs Gets or sets whether to include the locations of the matching documents.
- Limit
Gets or sets the limit.
- Max
Distance Gets or sets the maximum distance.
- Max
Time Gets or sets the maximum time.
- Message
Encoder Settings Gets the message encoder settings.
- Near
Gets the point for which to find the closest documents.
- Read
Concern Gets or sets the read concern.
- Result
Serializer Gets the result serializer.
- Spherical
Gets or sets whether to use spherical geometry.
- Unique
Docs Gets or sets whether to return a document only once.
Methods
- Execute(IRead
Binding, Cancellation Token) Executes the operation.
- Execute
Async(IRead Binding, Cancellation Token) Executes the operation.