You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently the generator methods for Prisma (generatePrismaDeleteMutation & generatePrismaUpdateMutation), when including User scoping, scaffolds invalid Prisma calls. This happens with
Generate a Model/View/Controller where the Entity belongs to the user.
In the UI create a record.
In the UI, try to edit or delete the a record that belongs to a user.
Expected behavior
The record should successfully update/delete.
Desktop (please complete the following information):
OS: MacOS Sonoma
Browser Chrome
Version 14.5
Additional context Discussion in Prisma Github.
When the entity belongs to the user, the generator should use deleteMany/updateMany instead of delete/update.
The text was updated successfully, but these errors were encountered:
Config File
{
"hasSrc": true,
"packages": [
"clerk",
"prisma",
"shadcn-ui"
],
"preferredPackageManager": "npm",
"t3": false,
"alias": "@",
"analytics": true,
"rootPath": "src/",
"componentLib": "shadcn-ui",
"orm": "prisma",
"driver": "pg",
"auth": "clerk"
}
Describe the bug
Currently the generator methods for Prisma (
generatePrismaDeleteMutation
&generatePrismaUpdateMutation
), when including User scoping, scaffolds invalid Prisma calls. This happens withhttps://github.com/nicoalbanese/kirimase/blame/bb5b0f8e7056505343f7d7813b3d7189bd540c1d/src/commands/generate/generators/model/mutations/generators.ts#L267
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The record should successfully update/delete.
Desktop (please complete the following information):
Additional context
Discussion in Prisma Github.
When the entity belongs to the user, the generator should use deleteMany/updateMany instead of delete/update.
The text was updated successfully, but these errors were encountered: