Order by aggregates with filters #10526
Labels
c/server
Related to server
c/v2-engine
k/enhancement
New feature or improve an existing feature
v2-server
v2
Discussed in #10522
Originally posted by kevinwasie September 3, 2024
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
The text was updated successfully, but these errors were encountered: