Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GeoNearOptions

Index

Properties

Optional distanceMultiplier

distanceMultiplier: undefined | number

Include a value to multiply the distances with allowing for range conversions.

Optional includeLocs

includeLocs: undefined | true | false

Include the location data fields in the top level of the results MongoDB > 2.X.

Optional maxDistance

maxDistance: undefined | number

Include results up to maxDistance from the point.

Optional minDistance

minDistance: undefined | number

Include results starting at minDistance from a point (2.6 or higher).

Optional num

num: undefined | number

Max number of results to return.

Optional query

query: Object

Filter the results by a query.

Optional readPreference

readPreference: ReadPreference | string

The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).

Optional spherical

spherical: undefined | true | false

Perform query using a spherical model.

Optional uniqueDocs

uniqueDocs: undefined | true | false

The closest location in a document to the center of the search region will always be returned MongoDB > 2.X.

Generated using TypeDoc