Package gql.ratpack

Class GraphQLModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class GraphQLModule
    extends ratpack.guice.ConfigurableModule<GraphQLModuleConfig>
    Configures GraphQL and GraphiQL handler instances import static ratpack.groovy.Groovy.ratpack import gql.ratpack.GraphQLHandler import gql.ratpack.GraphiQLHandler ratpack { bindings { module(GraphQLModule) } handlers { prefix('graphql') { post(GraphQLHandler) prefix('browser') { get(GraphiQLHandler) } } } }
    Since:
    0.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphQLModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure()  
      • Methods inherited from class ratpack.guice.ConfigurableModule

        configure, createConfig, defaultConfig, setConfig
      • Methods inherited from class com.google.inject.AbstractModule

        addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
    • Constructor Detail

      • GraphQLModule

        public GraphQLModule()
    • Method Detail

      • configure

        public void configure()
        Specified by:
        configure in class com.google.inject.AbstractModule