(
result: ExecutionResult
)
| 246 | : decodeData(result.data) |
| 247 | |
| 248 | const decodePartial = ( |
| 249 | result: ExecutionResult |
| 250 | ): Effect.Effect<PartialResult<GraphQL.Result<Op>>, GraphQLClientError, Op["result"]["DecodingServices"]> => { |
| 251 | if (!isStatusOk(result) || result.data === null || result.data === undefined) return failResponse(result) |
| 252 | return Effect.map(decodeData(result.data), (data): PartialResult<GraphQL.Result<Op>> => { |
| 253 | const partial = { data, errors: result.errors ?? [] } |
| 254 | partialResponses.set(partial, result) |
| 255 | return partial |
| 256 | }) |
| 257 | } |
| 258 | |
| 259 | return { fail, schemaFail, encodeVariables, failResponse, decodeStrict, decodePartial } as const |
| 260 | } |
no test coverage detected