Skip to content

Latest commit

 

History

History
92 lines (50 loc) · 2.42 KB

File metadata and controls

92 lines (50 loc) · 2.42 KB

redis-om / StringFieldDefinition

Interface: StringFieldDefinition

A field representing a whole string.

Hierarchy

Table of contents

Properties

Properties

alias

Optional alias: string

The default field name in Redis is the key name defined in the SchemaDefinition. Overrides the Redis key name if set.

Inherited from

BaseFieldDefinition.alias

Defined in

lib/schema/definition/base-field-definition.ts:12


separator

Optional separator: string

Due to how RediSearch works, strings and arrays are sometimes stored the same in Redis, as a simple string. This is the separator used to split those strings when it is an array. If your StringField contains this separator, this can cause problems. You can change it here to avoid those problems. Defaults to |.

Inherited from

SeparableFieldDefinition.separator

Defined in

lib/schema/definition/separable-field-definition.ts:9


sortable

Optional sortable: boolean

Enables sorting by this field.

Inherited from

SortableFieldDefinition.sortable

Defined in

lib/schema/definition/sortable-field-definition.ts:4


type

type: "string"

Yep. It's a string.

Overrides

BaseFieldDefinition.type

Defined in

lib/schema/definition/string-field-definition.ts:8