How to parse data and error inside our POJO Class from the GraphQLResponse Object ?
kumarsrv007 opened this issue · 0 comments
Discussed in #583
Originally posted by kumarsrv007 September 13, 2021
Hi, I am trying to parse the data node from the Graphql Response object. inside code, i am using GraphQLWebClient object to post our request to graphql server as - new GraphQLWebClient,post(request).block();
Above is returning the GraphQLResponse object which is not readable. could you please suggest any way to parse the object to fetch the data and error separately in some POJO classes? ******I want to fetch the entire data part of Graphql response in some POJO Classes irrespective of fields and query. Also tried with the ObjectMapper() method but was able to fetch data.
Am I missing something? is there any way to achieve the data and error section in separate POJO Class. ? Any help will be appreciated?