Zod object validator using Prisma (MySQL) enum
Hey, could anyone hint how to create a zod validator object, which one of the keys should be an enum from prisma (mysql)
zod validator (here is the issue, please help)
when parsing body on backend using this validator, category is just a string, which causes another type error on the backend when creating a new record
pls help!
0 Replies