in graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/MonoGraphQLClient.kt [60:128]
fun reactiveExecuteQuery(
@Language("graphql") query: String,
variables: Map<String, Any>,
operationName: String?,
): Mono<GraphQLResponse>
@Deprecated(
"The RequestExecutor should be provided while creating the implementation. Use CustomGraphQLClient/CustomMonoGraphQLClient instead.",
ReplaceWith("Example: new CustomGraphQLClient(url, requestExecutor);"),
)
fun reactiveExecuteQuery(
@Language("graphql") query: String,
variables: Map<String, Any>,
requestExecutor: MonoRequestExecutor,
): Mono<GraphQLResponse> = throw UnsupportedOperationException()
@Deprecated(
"The RequestExecutor should be provided while creating the implementation. Use CustomGraphQLClient/CustomMonoGraphQLClient instead.",
ReplaceWith("Example: new CustomGraphQLClient(url, requestExecutor);"),
)
fun reactiveExecuteQuery(
@Language("graphql") query: String,
variables: Map<String, Any>,
operationName: String?,
requestExecutor: MonoRequestExecutor,
): Mono<GraphQLResponse> = throw UnsupportedOperationException()
companion object {
@JvmStatic
fun createCustomReactive(
@Language("url") url: String,
requestExecutor: MonoRequestExecutor,
) = CustomMonoGraphQLClient(url, requestExecutor)
@JvmStatic
fun createCustomReactive(
@Language("url") url: String,
requestExecutor: MonoRequestExecutor,
options: GraphQLRequestOptions,
) = CustomMonoGraphQLClient(url, requestExecutor, options)
@JvmStatic
fun createWithWebClient(webClient: WebClient) = WebClientGraphQLClient(webClient)
@JvmStatic
fun createWithWebClient(
webClient: WebClient,
objectMapper: ObjectMapper,
) = WebClientGraphQLClient(webClient, objectMapper)
@JvmStatic
fun createWithWebClient(
webClient: WebClient,
headersConsumer: Consumer<HttpHeaders>,
) = WebClientGraphQLClient(webClient, headersConsumer)
@JvmStatic
fun createWithWebClient(
webClient: WebClient,
options: GraphQLRequestOptions,
) = WebClientGraphQLClient(webClient, { }, options)
@JvmStatic
fun createWithWebClient(
webClient: WebClient,
headersConsumer: Consumer<HttpHeaders>,
options: GraphQLRequestOptions,
) = WebClientGraphQLClient(webClient, headersConsumer, options)
}