@ConditionalOnProperty(value = ["graphglue.graphiql.enabled"], havingValue = "true", matchIfMissing = true)
@Configuration
class GraphiQLRouteConfiguration(val config: GraphQLConfigurationProperties, val graphglueConfig: GraphglueConfigurationProperties, @Value(value = "classpath:/graphiql.html") val graphiQLHtml: Resource, @Value(value = "${spring.webflux.base-path:#{null}}") val contextPath: String?)

Configuration for exposing the GraphiQL on a specific HTTP path

Parameters

config

GraphQL Kotlin config to obtain endpoints

graphglueConfig

used to configure the endpoint of the GraphiQL instance

graphiQLHtml

the HTML template to serve

contextPath

base path to build endpoint URLs

Constructors

Link copied to clipboard
constructor(config: GraphQLConfigurationProperties, graphglueConfig: GraphglueConfigurationProperties, @Value(value = "classpath:/graphiql.html") graphiQLHtml: Resource, @Value(value = "${spring.webflux.base-path:#{null}}") contextPath: String?)

Properties

Link copied to clipboard
private val body: String
Link copied to clipboard
private val config: GraphQLConfigurationProperties
Link copied to clipboard
private val contextPath: String?
Link copied to clipboard
Link copied to clipboard
private val graphiQLHtml: Resource

Functions

Link copied to clipboard
@Bean
fun graphiQLRoute(): RouterFunction<ServerResponse>

Route for the GraphIQL instance