public interface GraphQLWSHandler extends Handler<RoutingContext>
Modifier and Type | Method and Description |
---|---|
GraphQLWSHandler |
beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
Set a callback to invoke before executing a GraphQL query.
|
GraphQLWSHandler |
connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
Customize the connection init
Handler . |
static GraphQLWSHandler |
create(graphql.GraphQL graphQL)
Create a new
GraphQLWSHandler that will use the provided graphQL object to execute requests. |
static GraphQLWSHandler |
create(graphql.GraphQL graphQL,
GraphQLWSOptions options)
Create a new
GraphQLWSHandler that will use the provided graphQL object to execute requests. |
static GraphQLWSHandler create(graphql.GraphQL graphQL)
GraphQLWSHandler
that will use the provided graphQL
object to execute requests.
The handler will be configured with the default GraphQLWSOptions
.
static GraphQLWSHandler create(graphql.GraphQL graphQL, GraphQLWSOptions options)
GraphQLWSHandler
that will use the provided graphQL
object to execute requests.
The handler will be configured with the given options
.
options
- options for configuring the GraphQLWSOptions
GraphQLWSHandler connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
Handler
.
This handler will be called when the MessageType.CONNECTION_INIT
message is received.GraphQLWSHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
config
- the callback to invokeCopyright © 2022 Eclipse. All rights reserved.