How to use graphql query in restassured api automation directly using java ?

How to use the graphql query in rest API directly using java?



GraphQL String : 




//Sample program 

System.out.println(classname.graphqlToJson(value));

//this call will return the graphql query into formatted JSON payload and that can be directly used in REST ASSURED API for automation. 

Convert resultset object to list of map

Convert the resultset object to list of map In some cases, while we doing API automation, we need to fetch the value from the DB and hav...