adminjs-prisma
adminjs-prisma copied to clipboard
Update error when use id alias in Mongodb.
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()]
Any updates on this issue?
same issue