Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zod generation fails when previewFeatures = ["fullTextSearch"] #650

Closed
mateus-p opened this issue Aug 26, 2023 · 2 comments
Closed

Zod generation fails when previewFeatures = ["fullTextSearch"] #650

mateus-p opened this issue Aug 26, 2023 · 2 comments

Comments

@mateus-p
Copy link
Contributor

mateus-p commented Aug 26, 2023

Description and expected behavior
Zod does not generate the "[...]OrderByWithRelationInput.schema" (but tries to import it) when Full Text Search is activated.
It seems like Prisma generates a OrderByWithRelationInput type in order to Full Text Search work, but '@core/zod' cannot handle that correctly.

Screenshots
image
image

Environment:

  • ZenStack version: 1.0.0-beta.20
  • Prisma version: 5.2.0
  • Database type: Postgresql
@ymc9
Copy link
Member

ymc9 commented Aug 27, 2023

Thanks for filing this @mateus-p . When full-text search is enabled, the reference to OrderByXXX schema needs to use a variant name. I'll fix it in the next release.

@ymc9
Copy link
Member

ymc9 commented Sep 5, 2023

Fixed in 1.0.0-beta.21

@ymc9 ymc9 closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants