Hello,
I am trying to pull from a list using the following query
SELECT item WHERE Type = {Model.parameters.SelectedItemType} ORDER BY ageInQueue DESC
This works well if in the list there is actually an object of the specified type. But is it possible to select the oldest object in that list in case there is not an SelectedItemType item in the list? Something like, if the query returns empty, then we select the first item in the list ordered by age in queue