Interface GraphQLHandlerBuilder
public interface GraphQLHandlerBuilder
A builder for
GraphQLHandler instances.-
Method Summary
Modifier and TypeMethodDescriptionbeforeExecute(Handler<ExecutionInputBuilderWithContext<RoutingContext>> beforeExecuteHandler) Set a callback to invoke before executing a GraphQL query.build()with(GraphQLHandlerOptions options) Change theGraphQLHandlerOptionsto use.
-
Method Details
-
with
Change theGraphQLHandlerOptionsto use.- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
GraphQLHandlerBuilder beforeExecute(Handler<ExecutionInputBuilderWithContext<RoutingContext>> beforeExecuteHandler) Set a callback to invoke before executing a GraphQL query.- Parameters:
beforeExecuteHandler- the callback to invoke- Returns:
- a reference to this, so the API can be used fluently
-
build
GraphQLHandler build()- Returns:
- a new instance of
GraphQLHandler
-