- Java JDK 21 is installed
JAVA_HOMEenvironment variable is set correctly orjavais in the classpath
Check out the Getting Started docs.
./gradlew -q runThis will execute a default GraphQL query called greeting. You should see the following output:
{
"data" : {
"greeting" : "Hello, World!"
}
}Try a different GraphQL query by adding it as an argument to the run command:
./gradlew -q run --args="'{ author }'"You should see the following output:
{
"data" : {
"author" : "Brian Kernighan"
}
}