Possible to sort by count of Aggregate field?

For instance,

queryContact( order: { desc: hasTasksAggregate { count } ) 

Is there some way of doing something to that effect?

1 Like

Currently, this is not possible.

The current way to do this would be to fetch all contacts along with hasTasksAggregate and then sort results of the query from the app.

Ok. That is a heavy amount of data though…

Hopefully something for this is on the roadmap.

Thanks!

its not possible to sort by @lambda resolved fields is it?

Not that I have found.