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.
2 parents 5820d6e + 54e490e commit 310aaa5Copy full SHA for 310aaa5
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