Class LiftwizardGraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>

  • All Implemented Interfaces:
    com.smoketurner.dropwizard.graphql.GraphQLConfiguration<T>, io.dropwizard.ConfiguredBundle<T>

    public class LiftwizardGraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>
    extends com.smoketurner.dropwizard.graphql.GraphQLBundle<T>
    The bundle registers the GraphIQL UI at /graphiql and the GraphQL Playground UI at /graphql-playground, by delegating to AssetsBundle. This overrides the behavior of the smoketurner bundle GraphQLBundle, which registers just one UI (graphiql in older versions, and graphql-playground in newer versions) and registers the UI at the root.

    The bundle also registers two instrumentations for logging and metrics.

    See Also:
    https://liftwizard.io/docs/graphql/bundle#liftwizardgraphqlbundle
    • Constructor Detail

      • LiftwizardGraphQLBundle

        public LiftwizardGraphQLBundle​(@Nonnull
                                       Consumer<graphql.schema.idl.RuntimeWiring.Builder> runtimeWiringBuilder)
    • Method Detail

      • initialize

        public void initialize​(@Nonnull
                               io.dropwizard.setup.Bootstrap<?> bootstrap)
        Specified by:
        initialize in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>
        Overrides:
        initialize in class com.smoketurner.dropwizard.graphql.GraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>
      • getGraphQLFactory

        @Nonnull
        public com.smoketurner.dropwizard.graphql.GraphQLFactory getGraphQLFactory​(@Nonnull
                                                                                   T configuration)