Table of Contents

Method Geo2D

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Geo2D(FieldDefinition<TDocument>)

Creates a 2d index key definition.

public IndexKeysDefinition<TDocument> Geo2D(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

IndexKeysDefinition<TDocument>

A 2d index key definition.

Geo2D(Expression<Func<TDocument, object>>)

Creates a 2d index key definition.

public IndexKeysDefinition<TDocument> Geo2D(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

IndexKeysDefinition<TDocument>

A 2d index key definition.