public abstract static class DefaultExecutionGraphQlResponse.Builder<B extends DefaultExecutionGraphQlResponse.Builder<B,R>,R extends ExecutionGraphQlResponse> extends Object
ExecutionResult
.Modifier and Type | Method and Description |
---|---|
R |
build()
Build the response with the transformed
ExecutionResult . |
protected abstract R |
build(R original,
ExecutionResult newResult)
Subclasses to create the specific response instance.
|
DefaultExecutionGraphQlResponse.Builder<B,R> |
data(Object data)
Set the
data of the GraphQL execution result. |
DefaultExecutionGraphQlResponse.Builder<B,R> |
errors(List<GraphQLError> errors)
Set the
errors of the GraphQL execution
result. |
DefaultExecutionGraphQlResponse.Builder<B,R> |
extensions(Map<Object,Object> extensions)
Set the
extensions of the GraphQL
execution result. |
protected Builder(R original)
public DefaultExecutionGraphQlResponse.Builder<B,R> data(Object data)
data
of the GraphQL execution result.data
- the execution result datapublic DefaultExecutionGraphQlResponse.Builder<B,R> errors(@Nullable List<GraphQLError> errors)
errors
of the GraphQL execution
result.errors
- the execution result errorspublic DefaultExecutionGraphQlResponse.Builder<B,R> extensions(@Nullable Map<Object,Object> extensions)
extensions
of the GraphQL
execution result.extensions
- the execution result extensionspublic R build()
ExecutionResult
.protected abstract R build(R original, ExecutionResult newResult)