Closed Shahidul1004 closed 1 year ago
Hey @Shahidul1004 thanks for the PR! I'm facing this issue:
For the same schema in the repo.
Could you please share what the problem is here? Because I am not getting any issues.
UserOrderByWithRelationInput
. Sometimes vs code fails to track new files. Could you please restart the vs code and see if it gets solved? I also face this issue.UserOrderByWithRelationInput
or UserOrderByWithRelationAndSearchRelevanceInputObjectSchema
)? Or no file is being generated at all?Hey @Shahidul1004 I'll get back to you on this and other issues very soon. Just trying to get tRPC v10 released today :)
All good!
Released in https://github.com/omar-dulaimi/prisma-zod-generator/releases/tag/0.8.5
Thank you @Shahidul1004
Hi @omar-dulaimi, thanks for creating this awesome project. I would like to integrate a fix that is related to prisma preview feature.
References
https://www.prisma.io/docs/concepts/components/prisma-client/full-text-search
Description
If we use
fullTextSearch
(one of the preview features prisma offers) withMySQL
orPostgreSQL
, then prisma exportsUserOrderByWithRelationAndSearchRelevanceInputObjectSchema
instead ofUserOrderByWithRelationInputObjectSchema
.But in the transformer class while generating model schemas, currently we statically import the
UserOrderByWithRelationInputObjectSchema
. So I have added a resolve function that will return an import and zod-schema-line(like we do for include and select field) for orderBy field.