Drizzle TeamDT
Drizzle Team2y ago
7 replies
wheresthegold_

Typing casting from JSON_OBJECT()

Im using mysql / planetscale. When I select a field that is a boolean (tinyint in database) drizzle returns a boolean. However when selecting that field inside of a JSON_OBJECT, it will return as a tinyint. Is there any method I'm missing to cast this as a boolean inside the query, or will I just have to do this after the query execution?
Was this page helpful?