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

Function batchError

packages/effect/src/graphql/GraphQLResolver.ts:746–749  ·  view source on GitHub ↗
(
  codec: { readonly failResponse: (result: ExecutionResult) => Effect.Effect<never, GraphQLClientError> },
  result: PartialResult<unknown>
)

Source from the content-addressed store, hash-verified

744
745// Fails the batch with the response's errors and transport metadata.
746const batchError = (
747 codec: { readonly failResponse: (result: ExecutionResult) => Effect.Effect<never, GraphQLClientError> },
748 result: PartialResult<unknown>
749) => codec.failResponse(internalGraphQL.partialResponses.get(result) ?? { errors: result.errors })
750
751const truncated = (path: ReadonlyArray<string>) =>
752 new DecodeError({

Callers 2

orderedFunction · 0.85
findByIdFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected