Nullable columns doesn't show up while doing inserts
This is my database schema
When i try to do insert on any nullable fields it doesn't show up in insert types. Let's say while creating tokens user_id is nullable but i want to insert the user_id when creating token if i type user_id in values it shows typescript error. If i add
.notNull()
in the user_id foreign key it shows up in the insert.
does anyone has this issue?1 Reply
It's a bug when you have strict set to false in tsconfig.
https://github.com/drizzle-team/drizzle-orm/issues/2694
GitHub
[BUG]: Nullable columns do not exist in insert(table).values() · I...
What version of drizzle-orm are you using? 0.32.1 What version of drizzle-kit are you using? 0.23.0 Describe the Bug const files = pgTable("files", { id: uuid("id").primaryKey()...