You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for the amazing package, I just installed this and wanted to just create zod schemas and types from a prisma file which has at most 80 lines of code, is there a way to narrow the output a bit ? it also has syntax errors which I don't know how to solve, I have created zod schemas before for mongoose(the opposite) and has worked fine but this time I want to create zod schemas from Prisma.
Edit 2: Using createInputTypes = false will reduce the output to just the zod schemas and around 125 lines of zod, I just noticed the types are inside the index file!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello and thanks for the amazing package, I just installed this and wanted to just create zod schemas and types from a prisma file which has at most 80 lines of code, is there a way to narrow the output a bit ? it also has syntax errors which I don't know how to solve, I have created zod schemas before for mongoose(the opposite) and has worked fine but this time I want to create zod schemas from Prisma.
Edit 2: Using createInputTypes = false will reduce the output to just the zod schemas and around 125 lines of zod, I just noticed the types are inside the index file!
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions