public class RSocketGraphQlResponse extends DefaultExecutionGraphQlResponse
GraphQlResponse
implementation for server
handling over RSocket.Modifier and Type | Class and Description |
---|---|
static class |
RSocketGraphQlResponse.Builder
Builder to transform a
RSocketGraphQlResponse . |
Constructor and Description |
---|
RSocketGraphQlResponse(ExecutionGraphQlResponse response)
Create an instance that wraps the given
ExecutionGraphQlResponse . |
Modifier and Type | Method and Description |
---|---|
RSocketGraphQlResponse |
transform(Consumer<RSocketGraphQlResponse.Builder> consumer)
Transform the underlying
ExecutionResult through a RSocketGraphQlResponse.Builder
and return a new instance with the modified values. |
getData, getErrors, getExecutionInput, getExecutionResult, getExtensions, isValid, toMap, toString
field
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
field
public RSocketGraphQlResponse(ExecutionGraphQlResponse response)
ExecutionGraphQlResponse
.response
- the response to wrappublic RSocketGraphQlResponse transform(Consumer<RSocketGraphQlResponse.Builder> consumer)
ExecutionResult
through a RSocketGraphQlResponse.Builder
and return a new instance with the modified values.consumer
- callback to transform the resultExecutionResult