I have a table with userId field, but it is not helpful to display it as is, instead It would be nice to have the ability to easily add columns from the referenced table (user.name):
p.s. I've tried it myself, it did work, but it's very hacky and also type for DataTableFilterField.value had to be changed to string, because the id of my column was user_name as a result of referencing
Feature description
I have a table with
userId
field, but it is not helpful to display it as is, instead It would be nice to have the ability to easily add columns from the referenced table (user.name
):p.s. I've tried it myself, it did work, but it's very hacky and also type for
DataTableFilterField.value
had to be changed to string, because the id of my column wasuser_name
as a result of referencingAdditional Context
Also, maybe we can utilize dynamic query building for better types and more reusability: https://orm.drizzle.team/docs/dynamic-query-building
Before submitting