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?