Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 787 Bytes

Entity.md

File metadata and controls

46 lines (25 loc) · 787 Bytes

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

Methods

Properties

entityId

Readonly entityId: string

The generated entity ID.

Defined in

lib/entity/entity.ts:27

Methods

toJSON

toJSON(): Record<string, any>

Returns

Record<string, any>

Defined in

lib/entity/entity.ts:47