Class DefaultExecutionGraphQlResponse.Builder<B extends DefaultExecutionGraphQlResponse.Builder<B,R>, R extends ExecutionGraphQlResponse>
java.lang.Object
org.springframework.graphql.support.DefaultExecutionGraphQlResponse.Builder<B,R>
- Type Parameters:
B- the builder typeR- the response type
- Direct Known Subclasses:
RSocketGraphQlResponse.Builder,WebGraphQlResponse.Builder
- Enclosing class:
DefaultExecutionGraphQlResponse
public abstract static class DefaultExecutionGraphQlResponse.Builder<B extends DefaultExecutionGraphQlResponse.Builder<B,R>, R extends ExecutionGraphQlResponse>
extends Object
Builder to transform the response's
ExecutionResult.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the response with the transformedExecutionResult.protected abstract RSubclasses to create the specific response instance.Set thedataof the GraphQL execution result.Set theerrorsof the GraphQL execution result.extensions(@Nullable Map<Object, Object> extensions) Set theextensionsof the GraphQL execution result.
-
Constructor Details
-
Builder
-
-
Method Details
-
data
Set thedataof the GraphQL execution result.- Parameters:
data- the execution result data- Returns:
- the current builder
-
errors
public DefaultExecutionGraphQlResponse.Builder<B,R> errors(@Nullable List<graphql.GraphQLError> errors) Set theerrorsof the GraphQL execution result.- Parameters:
errors- the execution result errors- Returns:
- the current builder
-
extensions
-
build
Build the response with the transformedExecutionResult. -
build
-