vertx / io.vertx.kotlin.ext.web.handler.graphql / graphiQLOptionsOf

graphiQLOptionsOf

fun graphiQLOptionsOf(enabled: Boolean? = null, graphQLUri: String? = null, headers: Map<String, String>? = null, query: String? = null, variables: JsonObject? = null): GraphiQLOptions

A function providing a DSL for building io.vertx.ext.web.handler.graphql.GraphiQLOptions objects.

Embedded GraphiQL user interface options.

Parameters

enabled - Whether the GraphiQL development tool should be enabled. Defaults to false.

graphQLUri - Set the GraphQL endpoint URI. Defaults to the path used to get the GraphiQL user interface.

headers - A fixed set of HTTP headers to add to GraphiQL requests. Defaults to null.

query - Initial value of the query area in the GraphiQL user interface. Defaults to null.

variables - Initial value of the variables area in the GraphiQL user interface. Defaults to null.