Class RSocketGraphQlResponse
java.lang.Object
org.springframework.graphql.support.AbstractGraphQlResponse
org.springframework.graphql.support.DefaultExecutionGraphQlResponse
org.springframework.graphql.server.RSocketGraphQlResponse
- All Implemented Interfaces:
ExecutionGraphQlResponse
,GraphQlResponse
GraphQlResponse
implementation for server
handling over RSocket.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to transform aRSocketGraphQlResponse
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(Consumer<RSocketGraphQlResponse.Builder> consumer) Transform the underlyingExecutionResult
through aRSocketGraphQlResponse.Builder
and return a new instance with the modified values.Methods inherited from class org.springframework.graphql.support.DefaultExecutionGraphQlResponse
getData, getErrors, getExecutionInput, getExecutionResult, getExtensions, isValid, toMap, toString
Methods inherited from class org.springframework.graphql.support.AbstractGraphQlResponse
field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.graphql.GraphQlResponse
field
-
Constructor Details
-
RSocketGraphQlResponse
Create an instance that wraps the givenExecutionGraphQlResponse
.- Parameters:
response
- the response to wrap
-
-
Method Details
-
transform
Transform the underlyingExecutionResult
through aRSocketGraphQlResponse.Builder
and return a new instance with the modified values.- Parameters:
consumer
- callback to transform the result- Returns:
- the new response instance with the mutated
ExecutionResult
-