drizzle-zod doesn't work with Array in pg
I'm using
drizzle-orm
, drizzle-kit
& drizzle-zod
in my application. One of my schema looks like following:
The schema works fine when I push, safety_health_sources
is created as an array (No issues till this point)
I create zod
schema as well, like following:
and when I do:
4 Replies
I'm using the latest version of everything:
Could you use that?:
š
This seems to work, Thanks š«
But, can you tell me what is wrong in the process that I'm following?
Seems fine at first but it is better with drizzle type helper that has some infer rules