fixed graphql deserialization

This commit is contained in:
Andrey Terentev 2024-05-27 00:51:44 +07:00 committed by Andrey Terentev
parent 2a21143711
commit 284e1938ed

View File

@ -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);
} }