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 ExecutionResults.
Since:
1.0
Author:
Marcel Overdijk, James Kleeh
  • 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 emits GraphQLResponseBody objects.
      Specified by:
      handleExecutionResult in interface GraphQLExecutionResultHandler
      Parameters:
      executionResultPublisher - the execution result
      Returns:
      the response body