Class JsonResponseWrapper

java.lang.Object
com.graphql_java_generator.client.response.JsonResponseWrapper

public class JsonResponseWrapper extends Object
Author:
etienne-sf
  • Field Details

    • data

      public com.fasterxml.jackson.databind.JsonNode data
      This contains the data coming from the GraphQL part. The issue here is that it contains data that depends on the GraphQL schema. So we just collect the parsed Json, which will be mapped later to the relevant Java POJO
    • errors

      public List<Error> errors
      This optional field contains the errors, when one or more errors occurred
    • extensions

      public com.fasterxml.jackson.databind.JsonNode extensions
      This field is described in the GraphQL specification. It is stored here, without further mapping. It's actually a map, where value can be any object. So we can't deserialize here. And it would slow down the deserialization process.
      To get the value from this field, one must execute full queries, and retrieve from the received object. See the <A HREF="https://github.com/graphql-java-generator/graphql-maven-plugin-project/wiki/client_exec_graphql_requests>Client page about request execution about this.
  • Constructor Details

    • JsonResponseWrapper

      public JsonResponseWrapper()