Drizzle-zod combined with regular zod? 🙃
So I have a drizzle-zod schema for the server, and a regular zod rich schema for client side validation.
Does anyone have a way to merge regular zod with drizzle-zod for the strictest type to use on my server?
If not I don't see much point in drizzle-zod. Since I might as well just use my regular zod for types.
Thank you!
3 Replies
Actually I think I can simply use typescripts &
Hey, I am facing the same issue. Did you find a solution?
@RickRyan26 Not sure if I understand what you're asking for when you say that you want to merge the two, but this could be what you're looking for: https://orm.drizzle.team/docs/zod#factory-functions
Drizzle ORM - drizzle-zod
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.