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

fix: add missing "skipDuplicates" option to createMany input args #74

Merged

Conversation

lottamus
Copy link
Contributor

Description

Currently the zod output for CreateMany queries is only including the data property, but Prisma also allows skipDuplicates.

References

Prisma reference

https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#createmany

Example output

Screenshot 2023-02-23 at 5 30 10 PM

@omar-dulaimi
Copy link
Owner

Is this option available on all database types?

@omar-dulaimi
Copy link
Owner

I just checked and found that these databases don't have that option:

mongodb
sqlserver

So we shouldn't generate it in these cases

@omar-dulaimi omar-dulaimi merged commit 558c0a0 into omar-dulaimi:master May 19, 2023
@omar-dulaimi
Copy link
Owner

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.

2 participants