I'm using Drizzle for a Typescript backend that serves a few API endpoints. My database is Postgresql and there's a JSON column.
export const transactions = pgTable("transactions", {
id: serial("id").primaryKey(),
my_json: json('my_json')
});
I if try to store {"hello":"world"}
from a supabase table editor, this is what I'm getting:
If I try to insert my {"hello":"world"} using TS/Drizzle, this is what I'm getting:
Somehow I can't find a setting or a way to make drizzle store it as a real JSON object and not a string version of it.