public class GraphQLHandlerImpl extends Object implements GraphQLHandler
| Constructor and Description |
|---|
GraphQLHandlerImpl(graphql.GraphQL graphQL,
GraphQLHandlerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
GraphQLHandler |
dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
Customize the
DataLoaderRegistry. |
void |
handle(RoutingContext rc)
Something has happened, so handle it.
|
GraphQLHandler |
queryContext(Function<RoutingContext,Object> factory)
Customize the query context object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic GraphQLHandlerImpl(graphql.GraphQL graphQL,
GraphQLHandlerOptions options)
public GraphQLHandler queryContext(Function<RoutingContext,Object> factory)
GraphQLHandlerfactory method will be invoked for each incoming GraphQL request.queryContext in interface GraphQLHandlerpublic GraphQLHandler dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
GraphQLHandlerDataLoaderRegistry.
The provided factory method will be invoked for each incoming GraphQL request.dataLoaderRegistry in interface GraphQLHandlerpublic void handle(RoutingContext rc)
Handlerhandle in interface Handler<RoutingContext>rc - the event to handleCopyright © 2020. All rights reserved.