public interface Response
| Modifier and Type | Method and Description |
|---|---|
javax.json.JsonObject |
getData()
The 'data' object contained in the response.
|
List<GraphQLError> |
getErrors()
List of errors contained in this response.
|
<T> List<T> |
getList(Class<T> dataType,
String rootField)
Transform the contents of the `rootField` from this response into a list of objects
of the requested type.
|
<T> T |
getObject(Class<T> dataType,
String rootField)
Transform the contents of the `rootField` from this response into an object
of the requested type.
|
Map<String,List<String>> |
getTransportMeta()
Get transport-specific metadata that came from the server with this response.
|
boolean |
hasData()
If this response contains any data, this returns `true`; `false` otherwise.
|
boolean |
hasError()
If this response contains at least one error, this returns `true`; `false` otherwise.
|
javax.json.JsonObject getData()
List<GraphQLError> getErrors()
<T> List<T> getList(Class<T> dataType, String rootField)
<T> T getObject(Class<T> dataType, String rootField)
boolean hasData()
boolean hasError()
Copyright © 2018–2022. All rights reserved.