Function
batchError
(
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. |
| 746 | const 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 | |
| 751 | const truncated = (path: ReadonlyArray<string>) => |
| 752 | new DecodeError({ |
Tested by
no test coverage detected