Class DefaultGraphQLExecutionResultHandler
java.lang.Object
io.micronaut.configuration.graphql.DefaultGraphQLExecutionResultHandler
- All Implemented Interfaces:
GraphQLExecutionResultHandler
@Singleton
public class DefaultGraphQLExecutionResultHandler
extends Object
implements GraphQLExecutionResultHandler
The default implementation for handling GraphQL
ExecutionResult
s.- Since:
- 1.0
- Author:
- Marcel Overdijk, James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<GraphQLResponseBody>
handleExecutionResult
(org.reactivestreams.Publisher<graphql.ExecutionResult> executionResultPublisher) Handles the execution result by converting the provided execution result publisher to a publisher that emitsGraphQLResponseBody
objects.
-
Constructor Details
-
DefaultGraphQLExecutionResultHandler
public DefaultGraphQLExecutionResultHandler()
-
-
Method Details
-
handleExecutionResult
public org.reactivestreams.Publisher<GraphQLResponseBody> handleExecutionResult(org.reactivestreams.Publisher<graphql.ExecutionResult> executionResultPublisher) Handles the execution result by converting the provided execution result publisher to a publisher that emitsGraphQLResponseBody
objects.- Specified by:
handleExecutionResult
in interfaceGraphQLExecutionResultHandler
- Parameters:
executionResultPublisher
- the execution result- Returns:
- the response body
-