redis-om / 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 {}• Readonly entityId: string
The generated entity ID.
• get keyName(): string
string
The keyname this Entity is stored with in Redis.
▸ toJSON(): Record<string, any>
Converts this Entity to a JavaScript object suitable for stringification.
Record<string, any>
a JavaScript object.