Class DefaultGraphQLInvocation
java.lang.Object
io.micronaut.configuration.graphql.DefaultGraphQLInvocation
- All Implemented Interfaces:
 GraphQLInvocation
The default implementation for invoking GraphQL requests.
- Since:
 - 1.0
 - Author:
 - Marcel Overdijk, Graeme Rocher, James Kleeh
 - See Also:
 - 
GraphQLExecutionInputCustomizer.customize(ExecutionInput, HttpRequest, MutableHttpResponse)GraphQL.executeAsync(ExecutionInput.Builder)
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultGraphQLInvocation(graphql.GraphQL graphQL, GraphQLExecutionInputCustomizer graphQLExecutionInputCustomizer, @Nullable io.micronaut.context.BeanProvider<org.dataloader.DataLoaderRegistry> dataLoaderRegistry) Default constructor. - 
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<graphql.ExecutionResult>invoke(GraphQLInvocationData invocationData, io.micronaut.http.HttpRequest httpRequest, @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse) Invokes the GraphQL request and returns a publisher that emitsExecutionResultobjects. 
- 
Constructor Details
- 
DefaultGraphQLInvocation
public DefaultGraphQLInvocation(graphql.GraphQL graphQL, GraphQLExecutionInputCustomizer graphQLExecutionInputCustomizer, @Nullable @Nullable io.micronaut.context.BeanProvider<org.dataloader.DataLoaderRegistry> dataLoaderRegistry) Default constructor.- Parameters:
 graphQL- theGraphQLinstancegraphQLExecutionInputCustomizer- theGraphQLExecutionInputCustomizerinstancedataLoaderRegistry- theDataLoaderRegistryinstance
 
 - 
 - 
Method Details
- 
invoke
public org.reactivestreams.Publisher<graphql.ExecutionResult> invoke(GraphQLInvocationData invocationData, io.micronaut.http.HttpRequest httpRequest, @Nullable @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse) Invokes the GraphQL request and returns a publisher that emitsExecutionResultobjects.- Specified by:
 invokein interfaceGraphQLInvocation- Parameters:
 invocationData- the GraphQL invocation datahttpRequest- the HTTP requesthttpResponse- the mutable HTTP response, can be null when using websocket- Returns:
 - the GraphQL execution result
 
 
 -