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

[Feature Request] Add property to disable generation of XXXFieldUpdateOperationsInputSchema #256

Open
StringKe opened this issue May 30, 2024 · 1 comment

Comments

@StringKe
Copy link

StringKe commented May 30, 2024

Is your feature request related to a problem? Please describe.
CleanShot 2024-05-30 at 15 32 26@2x

There is some other logic that needs to be executed before I can update the data, and using the update type directly does not satisfy the type validation of the find method.

Describe the solution you'd like
Add a property to control whether FieldUpdateOperationsInputSchema related union types need to be generated or not

Describe alternatives you've considered
None.

Additional context
None.

@StringKe
Copy link
Author

@chrishoermann
Is it possible to mask the process here? I'm not sure if I've found the right path, I've copied the code for local execution.

https://github.com/chrishoermann/zod-prisma-types/blob/master/packages/generator/src/functions/contentWriters/writeInputObjectType.ts#L43

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

No branches or pull requests

1 participant