0

I am making a rest call like this

GraphQLResult<Map<String, T>> result = restTemplate.exchange(URI.create(rpasHostURl),
                    HttpMethod.POST,
                    httpEntity(request,headers),
                    new ParameterizedTypeReference<GraphQLResult<Map<String, T>>>() {})
                    .getBody();

This returns linkedHashMap in data

later on this line ResourceConnection data = result.getData().get("resources");

i get the error : java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.intuit.graphql.rpas.ResourceConnection

yogas
  • 157
  • 3
  • 13

0 Answers0