Package gql.ratpack

Class GraphiQLHandler

  • All Implemented Interfaces:
    ratpack.handling.Handler

    public class GraphiQLHandler
    extends Object
    implements ratpack.handling.Handler
    GraphiQL endpoint. This handler will be exposing a given GraphiQL client. By default the handler is disable, so in order to enable it you should set the GraphQLModuleConfig#activateGraphiQL to true when enabling the module
    Since:
    0.2.0
    • Constructor Detail

      • GraphiQLHandler

        public GraphiQLHandler()
    • Method Detail

      • handle

        public void handle​(ratpack.handling.Context ctx)
                    throws Exception
        Specified by:
        handle in interface ratpack.handling.Handler
        Throws:
        Exception