neondb/serverless postgresql JSONB insert example

There is no example of how to insert jsonb column to the table? Do I have to serialize object before inserting?
3 Replies
Angelelz
Angelelz9mo ago
There is currently a bug in drizzle when inserting jsonb You shouldn't need to serialize it There is PR open to fix so it should be pretty soon
Angelelz
Angelelz9mo ago
GitHub
[BUG]: jsonb type on postgres implement incorrectly · Issue #1511 ·...
What version of drizzle-orm are you using? 0.29.0 What version of drizzle-kit are you using? 0.20.1 Describe the Bug create tbl01 in the postgres db run this code import { sql } from "drizzle-...
Angelelz
Angelelz9mo ago
You can read more about it in the issue
Want results from more Discord servers?
Add your server