Inferring types from Prisma schema for Zod input

I can’t find this in any of the docs, but I feel like there has to be a way. Instead of redefining each property on an input I want to define it as a type I’m already using elsewhere that was generated by Prisma. Infer uses an actual value to do this, not a type. Is there a way to do this using the type?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server