Skip to content

Typescript search SORTBY BY option results in error #3017

@Aloune92

Description

@Aloune92

Description

The type of FtSearchOptions SORTBY BY option is typed as RediSearchProperty = ${'@' | '$.'}${string}; which force me to use this option as @lastActivity (instead of simple lastActivity before) and results with the following error : [SimpleError: Property @lastActivity not loaded nor in schema]

Was working fine before when the @ and $. prefixes were not required.

Node.js Version

23.3.0

Redis Server Version

8.0.2

Node Redis Version

5.6.0

Platform

Linux

Logs

[SimpleError: Property `@lastActivity` not loaded nor in schema]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions