-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Bug: CreateMany Returns Error Complaining "Argument skipDuplicates
Does Not Exist On Enclosing Type"
#173
Comments
Hmm, forgot that skipDuplicates isn't available everywhere. Will need to make that a database-specific feature. |
Right. According to https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#createmany: |
skipDuplicates availability:
|
The availability of |
attempted fix using feature: Fix #174 |
Calling create_many() returns this error:
function called:
client.location().create_many(many_data).exec().await?
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.1" }
Here is a minimal example Repo to reproduce the problem: https://github.com/Congyuwang/rust-prisma-create-many-debug
The model in the example looks like this:
The main function looks like this:
To reproduce, clone the repo https://github.com/Congyuwang/rust-prisma-create-many-debug, add a mongodb
DB_URL
andcargo run --release
.The text was updated successfully, but these errors were encountered: