Class DefaultGraphQLExecutionResultHandler
- java.lang.Object
-
- io.micronaut.configuration.graphql.DefaultGraphQLExecutionResultHandler
-
- All Implemented Interfaces:
GraphQLExecutionResultHandler
@Singleton public class DefaultGraphQLExecutionResultHandler extends java.lang.Object implements GraphQLExecutionResultHandler
The default implementation for handling GraphQLExecutionResults.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphQLExecutionResultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 emitsGraphQLResponseBodyobjects.
-
-
-
Method Detail
-
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 emitsGraphQLResponseBodyobjects.- Specified by:
handleExecutionResultin interfaceGraphQLExecutionResultHandler- Parameters:
executionResultPublisher- the execution result- Returns:
- the response body
-
-