Dynamic orderBy
I would like to dynamically add ordering to my select().from()... (I'm getting ordering criteria from frontend as a pair of column name and direction)
Is there something similar as getTableColumns to get typed colums so I could find desired column by its name to use in orderBy() method?
1 Reply
Hey I know this is late, but here's my solution that's working. I'm grabbing the column name off the search params
jsdoc was formatting wierd with discord, but that sshould explain it hopefully