Open michaelcm opened 9 months ago
So still an issue, working around this by creating a bunch of views for our tables, that have the necessary columns to sort and display the necessary values... a bit of overhead to work around something that seem to be incorrectly documented, or doesn't actually work.
CREATE OR REPLACE VIEW ... AS
SELECT
ts.*,
COUNT(DISTINCT g.id) AS group_count,
COUNT(DISTINCT u.id) AS user_count,
FROM
...
Versions:
In this example I have two tables, one called users and one called people. This code snippet one field in UserList.tsx:
The value of theoretically supported
sortBy
is documented here https://marmelab.com/react-admin/ReferenceField.html#sortbyClicking on the column header to sort by
people.display_name
results in this error:Which makes me think the hasura data provider doesn't know how to handle sorting on related columns. Hoping for confirmation, or perhaps someone can point out what I'm doing wrong.
Thanks so much! Michael