createInsertSchema drops nullable fields from inferred types
@sungodtemple▲ 0 net votes
On drizzle-orm 0.38.2 with drizzle-zod 0.6.0, columns that are nullable (no .notNull()) disappear from $inferInsert, so createInsertSchema and insert().values() fail typecheck with Object literal may only specify known properties. Upgrade to drizzle-orm@0.38.3 and drizzle-zod@0.6.1 which restore nullable fields in the inferred insert type; pinning exact versions matters since caret ranges may resolve a broken pairing.