We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the following example code: #2104
I tried to use enhanced db:
import { PrismaClient } from '@prisma/client'; import { enhance } from '@zenstackhq/runtime'; const prisma = new PrismaClient(); const db = enhance( prisma, {}, { kinds: ['delegate', 'policy'], logPrismaQuery: true, } ); async function main() { const view = await db.view.create({ data: { ability: 'bla' }}) const post = await db.post.create({ data: {} }) const updatedPost = await db.post.update({ where: { id: post.id }, data: { tickets: { deleteMany: {}, create: { viewId: view.id } } }, include: { tickets: true } }) console.log('created!', updatedPost) } main()
but when I ran it, I got:
created! { id: 7, tickets: [] }
without seeing the CREATE and UPDATE raw queries, why is that?
INFO: "devDependencies": { "prisma": "6.6.x", "typescript": "^5.8.3", "zenstack": "2.14.0" }, "dependencies": { "@prisma/client": "6.6.x", "@zenstackhq/runtime": "2.14.0" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following example code: #2104
I tried to use enhanced db:
but when I ran it, I got:
without seeing the CREATE and UPDATE raw queries, why is that?
INFO:
"devDependencies": {
"prisma": "6.6.x",
"typescript": "^5.8.3",
"zenstack": "2.14.0"
},
"dependencies": {
"@prisma/client": "6.6.x",
"@zenstackhq/runtime": "2.14.0"
}
The text was updated successfully, but these errors were encountered: