Order by aggregate count when there are two aliases using where #10522
Replies: 1 comment
-
Your findings are correct. Looks like Hasura doesn't support ordering by aggregates with additional filters. Converting this into an enhancement request. #10526 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the below GraphQL, how do I sort the users[] list by the count of 'user_houses' or 'user_jobs'?
I'm using backend pagination and backend fetches for refreshed data on sort requests. The dataset is to large to pass it everytime to the front end to handle this. Is there a way?
The query produces:
I've tried the following but neither of them work:
This removes the filters and simply sorts by the total aggregate of users_to_buildings
This produces an error
Beta Was this translation helpful? Give feedback.
All reactions