in graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLClient.kt [53:100]
fun executeQuery(
@Language("graphql") query: String,
variables: Map<String, Any>,
operationName: String?,
): GraphQLResponse
@Deprecated(
"The RequestExecutor should be provided while creating the implementation. Use CustomGraphQLClient/CustomMonoGraphQLClient instead.",
ReplaceWith("Example: new CustomGraphQLClient(url, requestExecutor);"),
)
fun executeQuery(
query: String,
variables: Map<String, Any>,
requestExecutor: RequestExecutor,
): GraphQLResponse = throw UnsupportedOperationException()
@Deprecated(
"The RequestExecutor should be provided while creating the implementation. Use CustomGraphQLClient/CustomMonoGraphQLClient instead.",
ReplaceWith("Example: new CustomGraphQLClient(url, requestExecutor);"),
)
fun executeQuery(
@Language("graphql") query: String,
variables: Map<String, Any>,
operationName: String?,
requestExecutor: RequestExecutor,
): GraphQLResponse = throw UnsupportedOperationException()
companion object {
@JvmStatic
fun createCustom(
url: String,
requestExecutor: RequestExecutor,
) = CustomGraphQLClient(url, requestExecutor)
@JvmStatic
fun createCustom(
url: String,
requestExecutor: RequestExecutor,
mapper: ObjectMapper,
) = CustomGraphQLClient(url, requestExecutor, mapper)
@JvmStatic
fun createCustom(
url: String,
requestExecutor: RequestExecutor,
options: GraphQLRequestOptions,
) = CustomGraphQLClient(url, requestExecutor, options)
}