order by dynamic colum
i have a table and i want the user to be able to order by different columns. how do i write the drizzle query to take in a string and do the ordering? Example here: https://orm.drizzle.team/learn/guides/limit-offset-pagination does ordereing as such: .orderBy(users.id).
But for my use case, I won't know until runtime.
But for my use case, I won't know until runtime.
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.