© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
3 replies
Marcin.B

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?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to make dynamic orderBy?
Drizzle TeamDTDrizzle Team / help
3y ago
OrderBy with dynamic queries dont work
Drizzle TeamDTDrizzle Team / help
3y ago
case insensitive orderBy
Drizzle TeamDTDrizzle Team / help
2y ago
NULLS LAST in orderBy
Drizzle TeamDTDrizzle Team / help
16mo ago