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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to transform aRSocketGraphQlResponse. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiontransform(Consumer<RSocketGraphQlResponse.Builder> consumer) Transform the underlyingExecutionResultthrough aRSocketGraphQlResponse.Builderand return a new instance with the modified values.Methods inherited from class org.springframework.graphql.support.DefaultExecutionGraphQlResponse
getData, getErrors, getExecutionInput, getExecutionResult, getExtensions, isValid, toMap, toStringMethods inherited from class org.springframework.graphql.support.AbstractGraphQlResponse
fieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 underlyingExecutionResultthrough aRSocketGraphQlResponse.Builderand return a new instance with the modified values.- Parameters:
 consumer- callback to transform the result- Returns:
 - the new response instance with the mutated 
ExecutionResult 
 
 -