Class GraphiQLController


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

      Constructors 
      Constructor Description
      GraphiQLController​(GraphQLConfiguration graphQLConfiguration, GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.core.io.ResourceResolver resourceResolver, io.micronaut.core.convert.ConversionService conversionService)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get()
      Handles the incoming GraphiQL GET requests.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphiQLController

        public GraphiQLController​(GraphQLConfiguration graphQLConfiguration,
                                  GraphQLWsConfiguration graphQLWsConfiguration,
                                  io.micronaut.core.io.ResourceResolver resourceResolver,
                                  io.micronaut.core.convert.ConversionService conversionService)
        Default constructor.
        Parameters:
        graphQLConfiguration - the GraphQLConfiguration instance
        graphQLWsConfiguration - the GraphQLWsConfiguration instance
        resourceResolver - the ResourceResolver instance
        conversionService - the ConversionService instance
    • Method Detail

      • get

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