Class GraphQLHandler

    • Constructor Detail

      • GraphQLHandler

        public GraphQLHandler​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • queryContext

        @Deprecated
        public GraphQLHandler queryContext​(Function<RoutingContext,​Object> factory)
        Deprecated.
        Customize the query context object. The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL)
        Create a new GraphQLHandler that will use the provided graphQL object to execute queries.

        The handler will be configured with default GraphQLHandlerOptions.

        Parameters:
        graphQL -
        Returns:
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL,
                                            GraphQLHandlerOptions options)
        Create a new GraphQLHandler that will use the provided graphQL object to execute queries.

        The handler will be configured with the given options.

        Parameters:
        graphQL -
        options - options for configuring the GraphQLHandler
        Returns:
      • getRoutingContext

        @Deprecated
        public static RoutingContext getRoutingContext​(graphql.GraphQLContext graphQlContext)
        Deprecated.
        Retrieves the from the .
        Parameters:
        graphQlContext - the GraphQL context object
        Returns:
        the
      • dataLoaderRegistry

        @Deprecated
        public GraphQLHandler dataLoaderRegistry​(Function<RoutingContext,​org.dataloader.DataLoaderRegistry> factory)
        Deprecated.
        Customize the . The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently
      • locale

        @Deprecated
        public GraphQLHandler locale​(Function<RoutingContext,​Locale> factory)
        Deprecated.
        Customize the passed to the GraphQL execution engine. The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently