Skip to main content

Getting Started

Installation

Add the ArianeGraphQL library to your project by including the following dependency in your build file:

dependencies {
implementation("com.arianegraphql:server:${arianeVersion}")
implementation("com.arianegraphql:server-ktor:${arianeVersion}")
}
tip

It's also recommended to install the codegen plugin. See codegen plugin installation.

Usage

You can directly start the server like this:

fun main() = arianeServer {

schema = loadSchema("schema.graphqls")

resolvers {

}

}.launch()

That's it!

Congratulations! You have a running GraphQL server. Let's now implement the resolvers.