Class DefaultExecutionGraphQlResponse

java.lang.Object
org.springframework.graphql.support.AbstractGraphQlResponse
org.springframework.graphql.support.DefaultExecutionGraphQlResponse
All Implemented Interfaces:
ExecutionGraphQlResponse, GraphQlResponse
Direct Known Subclasses:
RSocketGraphQlResponse, WebGraphQlResponse

public class DefaultExecutionGraphQlResponse extends AbstractGraphQlResponse implements ExecutionGraphQlResponse
GraphQlResponse for server use that wraps the ExecutionResult returned from GraphQL and also exposes the actual ExecutionInput instance passed into it.
Since:
1.0.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • DefaultExecutionGraphQlResponse

      public DefaultExecutionGraphQlResponse(ExecutionInput input, ExecutionResult result)
      Constructor to create initial instance.
      Parameters:
      input - the execution input for this graphql operation
      result - the execution result for this graphql operation
    • DefaultExecutionGraphQlResponse

      protected DefaultExecutionGraphQlResponse(ExecutionGraphQlResponse response)
      Constructor to re-wrap from transport specific subclass.
      Parameters:
      response - the execution response
  • Method Details