We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prisma.$use
1 parent 49fb0ce commit db20324Copy full SHA for db20324
test/versioned/prisma/app.js
@@ -5,14 +5,6 @@
5
6
'use strict'
7
async function upsertUsers(prisma) {
8
- prisma.$use(async function prismaMiddleware(params, next) {
9
- if (params.action === 'update') {
10
- params.args.data.updatedBy = 'Jessica Lopatta <jlopatta@newrelic.com>'
11
- }
12
-
13
- return next(params)
14
- })
15
16
const users = await prisma.user.findMany()
17
18
const upserts = []
test/versioned/prisma/package.json
@@ -17,7 +17,7 @@
"node": ">=20"
},
19
"dependencies": {
20
- "@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1 <6.14.0"
+ "@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1"
21
22
"files": [
23
"prisma.test.js"
0 commit comments