(
variables?: GraphQL.Variables<Op>,
options?: CallOptions<R2>
)
| 447 | ...args: Args<GraphQL.Variables<Op>, CallOptions<R2> & { readonly partial?: false | undefined }> |
| 448 | ): Effect.Effect<GraphQL.Result<Op>, GraphQL.Error<Op>, Exclude<GraphQL.Services<Op>, R2>> |
| 449 | function method<R2>( |
| 450 | variables?: GraphQL.Variables<Op>, |
| 451 | options?: CallOptions<R2> |
| 452 | ): Effect.Effect< |
| 453 | GraphQL.Result<Op> | PartialResult<GraphQL.Result<Op>>, |
| 454 | GraphQL.Error<Op>, |
| 455 | Exclude<GraphQL.Services<Op>, R2> |
| 456 | > { |
| 457 | return buildRequest(variables, options).pipe( |
| 458 | Effect.flatMap((request) => run(request, false)), |
| 459 | Effect.flatMap( |
| 460 | (result): Effect.Effect< |
| 461 | GraphQL.Result<Op> | PartialResult<GraphQL.Result<Op>>, |
| 462 | GraphQLClientError, |
| 463 | Op["result"]["DecodingServices"] |
| 464 | > => options?.partial === true ? decodePartial(result) : decodeStrict(result) |
| 465 | ), |
| 466 | Effect.provideContext(callContext(options)) |
| 467 | ) |
| 468 | } |
| 469 | internalGraphQL.rawExecutors.set(method, { execute: (request) => run(request, true), url: protocol.url }) |
| 470 | return Object.assign(method, { operation }) |
| 471 | } |
nothing calls this directly
no test coverage detected