Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
24.61k
stars
649
forks
source link
[BUG]: Drizzle Studio doesn't save strings in JSON fields #3586
Open
helloryuko opened 1 day ago
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.3
What version of
drizzle-kit
are you using?0.28.1
Other packages
No response
Describe the Bug
What is the undesired behavior?
Drizzle Studio row editor doesn't let using strings (a valid JSON object!) in a JSON column. Video demonstration: https://youtu.be/XeFh62uAOag
What are the steps to reproduce it?
jsonb
column in schema"foo"
, not{"foo": "bar"}
)What is the desired result?
Same as I expect from
INSERT INTO items (id, name) VALUES ('test', '"a json stringy!!"');
- creating a row with JSON columnname
containing a string.What database engine are you using?
Postgres with
pg
driver.Schema