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

Added fieldReference support #58

Closed

Conversation

Brettm12345
Copy link

Fixes #57

@omar-dulaimi
Copy link
Owner

Hello @Brettm12345

Sadly, your changes don't quite implement the feature right. You need to generate the right code; which includes new properties like: modelName name typeName isList
Check the types inside Prisma Client, you should get an idea about what you need.

Also, make sure to generate for this case only when the user actually enables it through previewFeatures. You could check this other PR as a reference https://github.com/omar-dulaimi/prisma-zod-generator/pull/62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't work with fieldReference
2 participants