MCPcopy
hub / github.com/prisma/prisma / $__internalBatch

Function $__internalBatch

packages/client/tests/functional/extensions/pdp.ts:238–252  ·  view source on GitHub ↗
({ query, args, __internalParams })

Source from the content-addressed store, hash-verified

236 query: {
237 // @ts-expect-error
238 async $__internalBatch({ query, args, __internalParams }) {
239 let cacheInfo: null | string = null
240 __internalParams.customDataProxyFetch = (fetch) => (url, args) => {
241 cacheInfo = 'hit!'
242 return fetch(url, args)
243 }
244
245 const result = await query(args, __internalParams)
246 for (const item of result) {
247 if (item) {
248 item.cacheInfo = cacheInfo
249 }
250 }
251 return result
252 },
253 },
254 })
255

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.50
queryFunction · 0.50

Tested by

no test coverage detected