Infering custom types

I am following the guide https://orm.drizzle.team/docs/custom-types#examples referenced here to create a custom JSONb schema. However, when i create an insert schema, the customtype field is of zod any
Common way of defining custom types - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
1 Reply
ZiriusPH
ZiriusPH10mo ago
I have the same issue atm. drizzle-typebox seems to be working fine, it can infer the createInsertSchema properly, but drizzle-zod cannot, columns with custom types become optional even though they are defined to be notNull()
Want results from more Discord servers?
Add your server