You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume it is not supported – couldn't find any mention in issues or elsewhere.
Example: FT.AGGREGATE idx:user * LOAD * should return all fields of all indexed "user" documents.
awaitclient.aggregate(`idx:user`,"*",{LOAD: "*",// causes TS error, does not work as JS as well// TS2345: Argument of type [string, string, {LOAD: "*";}] is not assignable to parameter of type})
It seems Node-Redis supports only basic named fields like LOAD: "@email". It does not support load all functionality which is IMO necessary, for example, to implement cursor-based pagination.
awaitclient.aggregate(`idx:user`,"*",{LOAD: "@email",})// works fine
Node.js Version
21.7.1
Redis Server Version
7.2.4
Node Redis Version
7.2.4
Platform
macOS
Logs
No response
Update
As a temporary low-level solution it's possible to:
Description
I'm not sure if it counts as a bug or a half-implemented feature...
I assume it is not supported – couldn't find any mention in issues or elsewhere.
Example:
FT.AGGREGATE idx:user * LOAD *
should return all fields of all indexed "user" documents.It seems Node-Redis supports only basic named fields like
LOAD: "@email"
. It does not support load all functionality which is IMO necessary, for example, to implement cursor-based pagination.Node.js Version
21.7.1
Redis Server Version
7.2.4
Node Redis Version
7.2.4
Platform
macOS
Logs
No response
Update
As a temporary low-level solution it's possible to:
Requires manual reply, manual JSON parsing, etc.
The text was updated successfully, but these errors were encountered: