MCPcopy Create free account
hub / github.com/effect-app/libs / unwrapQuery

Function unwrapQuery

packages/effect-app/src/client/apiClientFactory.ts:258–266  ·  view source on GitHub ↗
(eff: Effect.Effect<any, any, any>)

Source from the content-addressed store, hash-verified

256 )
257
258 const unwrapQuery = (eff: Effect.Effect<any, any, any>): Effect.Effect<any, any, any> =>
259 eff.pipe(
260 Effect.flatMap((result: any) =>
261 Effect.gen(function*() {
262 yield* forwardDependencies(result?.metadata?.dataDependencies, { reads: true })
263 return result.payload
264 })
265 )
266 )
267
268 return {
269 mr,

Callers 1

buildEffectFunction · 0.85

Calls 2

forwardDependenciesFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…