'how can I choose the fields to retrieve with FT.AGGREGATE?
I need to sort the documents by the field type equals folder and I only need the id to be retrieved, however, I can't seem to make only the id to be returned.
FT.AGGREGATE Query:DirectoryItem * APPLY "@type == 'folder'" as isFolder LIMIT 0 50 SORTBY 2 @isFolder DESC APPLY @id as id
The above query returns the type, isFolder and id fields.
Can I only retrieve id somehow?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
