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 05a6ac1 commit 54e490eCopy full SHA for 54e490e
kgraphql-ktor/src/main/kotlin/com/apurebase/kgraphql/KtorFeature.kt
@@ -61,7 +61,7 @@ class GraphQL(val schema: Schema) {
61
config.contextSetup?.invoke(this, call)
62
}
63
val result = schema.execute(request.query, request.variables.toString(), ctx)
64
- call.respond(result)
+ call.respondText(result, contentType = ContentType.Application.Json)
65
66
if (config.playground) get {
67
@Suppress("RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
0 commit comments