-
I start from https://medium.com/expedia-group-tech/creating-a-reactive-graphql-server-with-spring-boot-and-kotlin-54aca7316470 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello 👋 Looks like your application started successfully and you should be able to query it using GraphiQL IDE (defaults to Thanks, |
Beta Was this translation helpful? Give feedback.
-
+1 to what @dariuszkuc mentioned, if your problem still persists, we will need more info, not just an screenshot, repro steps, etc -- that way we could troubleshoot your issue. |
Beta Was this translation helpful? Give feedback.
-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.0.3"
id("io.spring.dependency-management") version "1.1.0"
kotlin("jvm") version "1.7.22"
kotlin("plugin.spring") version "1.7.22"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.expediagroup", "graphql-kotlin-spring-server", "6.4.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
package com.example.graphql
import com.expediagroup.graphql.server.operations.Query
import org.springframework.stereotype.Component
@Component
class HelloWorldQuery: Query {
fun helloWorld() = "Hello World!"
}
|
Beta Was this translation helpful? Give feedback.
build.gradle.kts