Class GraphiQLController

java.lang.Object
io.micronaut.configuration.graphql.GraphiQLController

@Controller("${graphql.graphiql.path:/graphiql}") @Requires(property="graphql.graphiql.enabled", value="true", defaultValue="false") public class GraphiQLController extends Object
The GraphiQL controller serving the GraphiQL HTML page.
Since:
1.0
Author:
Marcel Overdijk, James Kleeh
  • Constructor Details

    • GraphiQLController

      public GraphiQLController(GraphQLConfiguration graphQLConfiguration, GraphQLApolloWsConfiguration graphQLApolloWsConfiguration, io.micronaut.core.io.ResourceResolver resourceResolver, io.micronaut.core.convert.ConversionService conversionService)
      Default constructor.
      Parameters:
      graphQLConfiguration - the GraphQLConfiguration instance
      graphQLApolloWsConfiguration - the GraphQLApolloWsConfiguration instance
      resourceResolver - the ResourceResolver instance
      conversionService - the ConversionService instance
  • Method Details

    • get

      @Get(produces="text/html;charset=UTF-8") public String get()
      Handles the incoming GraphiQL GET requests.
      Returns:
      the GraphiQL page