public static interface ExecutionResult.Builder<B extends ExecutionResult.Builder<B>>
Modifier and Type | Method and Description |
---|---|
B |
addError(GraphQLError error)
Adds the error to any existing the errors for this builder
|
B |
addErrors(java.util.List<GraphQLError> errors)
Adds the error list to any existing the errors for this builder
|
B |
addExtension(java.lang.String key,
java.lang.Object value)
Adds a new entry into the extensions map for this builder
|
ExecutionResult |
build() |
B |
data(java.lang.Object data)
Sets new data into the builder
|
B |
errors(java.util.List<GraphQLError> errors)
Sets error list as the errors for this builder
|
B |
extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
Sets the extension map for this builder
|
B |
from(ExecutionResult executionResult)
Sets values into the builder based on a previous
ExecutionResult |
B from(ExecutionResult executionResult)
ExecutionResult
executionResult
- the previous ExecutionResult
B data(java.lang.Object data)
data
- the data to useB errors(java.util.List<GraphQLError> errors)
errors
- the errors to useB addErrors(java.util.List<GraphQLError> errors)
errors
- the errors to addB addError(GraphQLError error)
error
- the error to addB extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
extensions
- the extensions to useB addExtension(java.lang.String key, java.lang.Object value)
key
- the key of the extension entryvalue
- the value of the extension entryExecutionResult build()
ExecutionResult