Casting column at ordering time #930
Unanswered
adriangarrote-zh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I have a scenario where I need to cast a column for doing some ordering. This is a varchar column that I would like to cast to BIGINT for ordering. I have not found the way to do that using ORM bun. Not .
Order()
neitherOrderExpr()
works for that.So I needed to move to Raw SQL instead, which I would prefer to avoid and use the orm instead.
Any idea about how to achieve this? Is this just a missing feature un bun?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions