@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() |
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.
|
<T> T getData()
T
- allows type coercionjava.util.List<GraphQLError> getErrors()
java.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