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
RickRyan26
RickRyan26OP•3mo ago
Actually I think I can simply use typescripts &
Deniz
Deniz•2mo ago
Hey, I am facing the same issue. Did you find a solution?
Mario564
Mario564•2mo ago
@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.

Did you find this page helpful?