@PublicApi public interface ExecutionResult
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getData() |
java.util.List<GraphQLError> |
getErrors() |
java.util.Map<java.lang.Object,java.lang.Object> |
getExtensions() |
boolean |
isDataPresent()
The graphql specification specifies:
"If an error was encountered before execution begins, the data entry should not be present in the result.
|
java.util.Map<java.lang.String,java.lang.Object> |
toSpecification()
The graphql specification says that result of a call should be a map that follows certain rules on what items
should be present.
|
java.util.List<GraphQLError> getErrors()
<T> T getData()
T - allows type coercionboolean isDataPresent()
getData() returns null.
See : https://graphql.github.io/graphql-spec/June2018/#sec-Datatrue if the entry "data" should be present in the result
false otherwisejava.util.Map<java.lang.Object,java.lang.Object> getExtensions()
java.util.Map<java.lang.String,java.lang.Object> toSpecification()
ExecutionResult to spec, so this method
is provided to produce a map that strictly follows the specification.
See : http://facebook.github.io/graphql/#sec-Response-Format