Package graphql
Interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
- All Known Implementing Classes:
ExecutionResultImpl.Builder
,IncrementalExecutionResultImpl.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
Sets new data into the builder- Parameters:
data
- the data to use- Returns:
- the builder
-
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
Sets the extension map for this builder- Parameters:
extensions
- the extensions to use- Returns:
- the builder
-
addExtension
Adds a new entry into the extensions map for this builder- Parameters:
key
- the key of the extension entryvalue
- the value of the extension entry- Returns:
- the builder
-
build
ExecutionResult build()- Returns:
- a newly built
ExecutionResult
-