Skip to main content

Server configuration

ArianeServer allows you to configure several parameters.

arianeServer {
// Register your GraphQL schema by passing its file path
schema = loadSchema("schema.graphqls")

// Alternatively, you can setup it using a string like this
schema = "YOUR_SCHEMA_HERE"

// Set the port of the HTTP server (and WebSocket for subscriptions)
port = 3000

// Set the host of the HTTP server (and WebSocket for subscriptions)
host = "0.0.0.0

// Set the path of the HTTP server (and WebSocket for subscriptions)
path = "/graphql"

// Enable or disable the GraphQL Playground
enablePlayground = true

// Enable or disable the CORS for HTTP requests
enableCORS = true
}