We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f9948 commit 3e89cc6Copy full SHA for 3e89cc6
apollo-execution-spring/src/jvmMain/kotlin/com/apollographql/execution/spring/main.kt
@@ -9,7 +9,10 @@ import org.springframework.web.reactive.function.server.*
9
10
suspend fun ServerRequest.parseAsGraphQLRequest(): Result<GraphQLRequest> {
11
return when (this.method()) {
12
- HttpMethod.GET -> this.queryParams().parseAsGraphQLRequest()
+ HttpMethod.GET -> this.queryParams().toExternalValueMap().fold(
13
+ onSuccess = { it.parseAsGraphQLRequest() },
14
+ onFailure = { Result.failure(it) }
15
+ )
16
HttpMethod.POST -> {
17
awaitBody<String>().let {
18
Buffer().writeUtf8(it).parseAsGraphQLRequest()
0 commit comments