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

Update error when use id alias in Mongodb. #21

Open
x-ray-s opened this issue Aug 9, 2022 · 2 comments
Open

Update error when use id alias in Mongodb. #21

x-ray-s opened this issue Aug 9, 2022 · 2 comments

Comments

@x-ray-s
Copy link

x-ray-s commented Aug 9, 2022

model Test {
  oid String   @id @default(auto()) @map("_id") @db.ObjectId
  name String
}

When I update name property, I got an error which is "Unknown arg oid in data.oid for type IdAliasUpdateInput. Available args:"

You can run this repo to find the error.

I try to fix this error. delete the key which is the id in the data.

in Resource.ts

++ delete preparedParams[idProperty.path()]
@hamzalakrati
Copy link

Any updates on this issue?

@maglimedia
Copy link

same issue

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

3 participants