Function
$__internalBatch
({ 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
Tested by
no test coverage detected