Interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
- All Known Implementing Classes:
ExecutionResultImpl.Builder
- Enclosing interface:
ExecutionResult
public static interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
-
Method Summary
Modifier and TypeMethodDescriptionaddError(GraphQLError error) Adds the error to any existing the errors for this builderaddErrors(List<GraphQLError> errors) Adds the error list to any existing the errors for this builderaddExtension(String key, Object value) Adds a new entry into the extensions map for this builderbuild()Sets new data into the buildererrors(List<GraphQLError> errors) Sets error list as the errors for this builderextensions(Map<Object, Object> extensions) Sets the extension map for this builderfrom(ExecutionResult executionResult) Sets values into the builder based on a previousExecutionResult
-
Method Details
-
from
Sets values into the builder based on a previousExecutionResult- Parameters:
executionResult- the previousExecutionResult- Returns:
- the builder
-
data
-
errors
Sets error list as the errors for this builder- Parameters:
errors- the errors to use- Returns:
- the builder
-
addErrors
Adds the error list to any existing the errors for this builder- Parameters:
errors- the errors to add- Returns:
- the builder
-
addError
Adds the error to any existing the errors for this builder- Parameters:
error- the error to add- Returns:
- the builder
-
extensions
-
addExtension
-
build
ExecutionResult build()- Returns:
- a newly built
ExecutionResult
-