Table of Contents

Method GeoSpatialSpherical

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

GeoSpatialSpherical<TMember>(Expression<Func<TDocument, TMember>>)

Sets the key name to create a spherical geospatial index on.

public IndexKeysBuilder<TDocument> GeoSpatialSpherical<TMember>(Expression<Func<TDocument, TMember>> memberExpression)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

Returns

IndexKeysBuilder<TDocument>

The builder (so method calls can be chained).

Type Parameters

TMember

The type of the member.