(
data: unknown
)
| 212 | Effect.catch(encode(variables ?? {}), schemaFail((description) => new EncodeError({ description }))) |
| 213 | |
| 214 | const decodeData = ( |
| 215 | data: unknown |
| 216 | ): Effect.Effect<GraphQL.Result<Op>, GraphQLClientError, Op["result"]["DecodingServices"]> => |
| 217 | Effect.catch(decode(data), schemaFail((description) => new DecodeError({ description }))) |
| 218 | |
| 219 | // GraphQL requires errors when data is null or missing. Check before decoding, |
| 220 | // since schemas such as Schema.Json accept null. A non-2xx result never |
no test coverage detected