MCPcopy Create free account
hub / github.com/Effect-TS/effect / urlOf

Function urlOf

packages/effect/src/graphql/GraphQLResolver.ts:645–648  ·  view source on GitHub ↗
(entry: Request.Entry<A>)

Source from the content-addressed store, hash-verified

643 // Arrays are compared structurally, so equal keys share a batch.
644 const keyOf = (entry: Request.Entry<A>, url: string | undefined) => [url, batchKey?.(entry.context)] as const
645 const urlOf = (entry: Request.Entry<A>) =>
646 entry.request.url !== undefined || resolveUrl === undefined
647 ? Effect.succeed(entry.request.url)
648 : runIn(resolveUrl, entry.context)
649 const resolver = RequestResolver.makeGrouped<A, unknown>({
650 key: (entry) => keyOf(entry, entry.request.url),
651 resolver: (entries) =>

Callers

nothing calls this directly

Calls 2

runInFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected