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

Function keyOf

packages/effect/src/graphql/GraphQLResolver.ts:644–644  ·  view source on GitHub ↗
(entry: Request.Entry<A>, url: string | undefined)

Source from the content-addressed store, hash-verified

642 const resolveUrl = resolve?.({ kind: method.operation.kind, operationName: method.operation.name })
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)

Callers 1

makeResolverFunction · 0.70

Calls 1

batchKeyFunction · 0.50

Tested by

no test coverage detected