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
and this works great if i use Event schema in the models, and i can see there is properly generated zod in the file but, when i look at the EventWithRelations or even EventWithPartialRelations i get...
Again I may just need to change some config options to make this work as expected.
here is my config options
generatorzod {provider="zod-prisma-types"output="../src/lib/schemas/generated/zod"useMultipleFiles=true// default is falsewriteBarrelFiles=true// default is truecreateInputTypes=false// default is truecreateModelTypes=true// default is trueaddInputTypeValidation=false// default is trueaddIncludeType=false// default is trueaddSelectType=false// default is truevalidateWhereUniqueInput=false// default is falsecreateOptionalDefaultValuesTypes=false// default is falsecreateRelationValuesTypes=true// default is falsecreatePartialTypes=true// default is falseuseDefaultValidators=true// default is truecoerceDate=false// default is truewriteNullishInModelTypes=true// default is false}
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone.
I am propbably not configured correctly but i have managed to get types for JSON column types.
and this works great if i use
Event
schema in the models, and i can see there is properly generated zod in the file but, when i look at theEventWithRelations
or evenEventWithPartialRelations
i get...It seems a bit unintuitive that the omit clause is there as this can be fixed by
which just seems simpler and it works.
Again I may just need to change some config options to make this work as expected.
here is my config options
Thanks everyone
Beta Was this translation helpful? Give feedback.
All reactions