Skip to main content

Class: GeoField

Defined in: schema/fields.ts:212

GeoField for geographic queries

Extends

Constructors

Constructor

new GeoField(name, attrs?): GeoField

Defined in: schema/fields.ts:213

Parameters

name

string

attrs?

GeoFieldAttrs = {}

Returns

GeoField

Overrides

BaseField.constructor

Methods

toRedisField()

toRedisField(isJson): any

Defined in: schema/fields.ts:220

Convert this field to Redis schema field format. Each subclass must implement this method to return the appropriate Redis field type.

Parameters

isJson

boolean

Whether the index uses JSON storage (affects field naming with $.prefix)

Returns

any

Overrides

BaseField.toRedisField

Properties

attrs

readonly attrs: GeoFieldAttrs = {}

Defined in: schema/fields.ts:215

Inherited from

BaseField.attrs


name

readonly name: string

Defined in: schema/fields.ts:30

Inherited from

BaseField.name


path?

optional path?: string | null

Defined in: schema/fields.ts:33

Inherited from

BaseField.path


type

readonly type: string

Defined in: schema/fields.ts:31

Inherited from

BaseField.type