You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking on the column header to sort by people.display_name results in this error:
field 'people' not found in type: 'users_order_by'
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: