grahamgatus
10 years agoGuide
Selecting messages via LiQL with featured conversations ordered first
I am trying to call the REST v2 API, and select all topic messages, with featured conversations prioritised above other messages, ordered by post date.
Does anyone know if this is possible to achieve with a single API call?
The query would be something along the lines of the below, however in Studio this fails with an error indicating "Field 'conversation.featured' does not exist for object 'messages' as a sort constraint."
"select * from messages where depth = 0 order by conversation.featured ASC, post_time DESC"