Minor Changes
-
Add
foreignTable
propery to the supabase order statement to access relational data. For more information, you can check the 🔗documentation.What we added to the
getlist
hook is the following:💡 How use the
foreignTable
property?... const { tableProps } = useTable({ resource: "posts", initialSorter: [ { field: "categories.title", order: "asc", }, ], });
📢
field: "categories.title"
means in theposts
tablecategories
is the foreign table,title
is the field in the foreign table, andasc
is the order.🚨 If you are using Ant Design don't forget to pass the
sorter
anddataIndex
property to the yourColumm
component:... <Table.Column dataIndex={["categories", "title"]} title="Categories" sorter
Warning
We have developed this feature due to an issue here but currently, supabase doesn't support it. You can follow the progress here 👇