Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.02 KB

Entity.md

File metadata and controls

64 lines (34 loc) · 1.02 KB

redis-om / Entity

Class: Entity

An Entity is the class from which objects that Redis OM maps to are made. You need to subclass Entity in your application:

class Foo extends Entity {}

Table of contents

Properties

Accessors

Methods

Properties

entityId

Readonly entityId: string

The generated entity ID.

Defined in

lib/entity/entity.ts:33

Accessors

keyName

get keyName(): string

Returns

string

Defined in

lib/entity/entity.ts:55

Methods

toJSON

toJSON(): Record<string, any>

Returns

Record<string, any>

Defined in

lib/entity/entity.ts:59