Aggregation Order by Value
With data connect aggregation queries, I would like to order the returned results by an aggregated value. The below example fails with the message: "Field "count" is not defined by type "LeadOrder". Did you mean ...?"
query {
leads(orderBy: [{ _count: DESC }], limit: 10) {
company
_count
}
}
1
vote