JsonB and $type

I don't get how we're supposed to use jsonb types with drizzle-orm and drizzle-zod if we use jsonb().$type<SomeType> then it seems that when we use createInsertSchema etc we still need to add a refinement for the field or we have type issues I created some issues on the repo to have more infos, but perhaps someone here knows what are the best way to handle typed jsonb fields? issues: https://github.com/drizzle-team/drizzle-orm/issues/4361 and https://github.com/drizzle-team/drizzle-orm/issues/4366
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?