fixed graphql deserialization
This commit is contained in:
parent
2a21143711
commit
284e1938ed
@ -117,7 +117,7 @@ public class RestTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return json.readValue(response, new TypeReference<GraphqlQuery.Response<T>>(){}).data();
|
return json.treeToValue(node.get("data"), query.responseClass());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new RuntimeException(ex);
|
throw new RuntimeException(ex);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user