jeremydaly/serverless-mysql

TINYINT to BOOLEAN

pergunt opened this issue · 1 comments

Is there a way to transfrom TINYINT fields to BOOLEAN "on fly" where we are querring TINYINT fields? So intstead of returning 1 or 0 we will be returning true / false

Hey @pergunt,
yes!

I recommend reading this article that discusses this exact situation with several solutions for doing so.