MCPcopy
hub / github.com/prisma/prisma / firstPlugin

Function firstPlugin

packages/client-engine-runtime/src/sql-commenter.test.ts:164–169  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

162 let secondPluginContext: SqlCommenterContext | undefined
163
164 const firstPlugin: SqlCommenterPlugin = (ctx) => {
165 firstPluginContext = ctx
166 Object.assign(ctx, { mutated: true })
167 Object.assign(ctx.query, { modelName: 'Hacked' })
168 return { first: 'plugin' }
169 }
170
171 const secondPlugin: SqlCommenterPlugin = (ctx) => {
172 secondPluginContext = ctx

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected