Class JsonResponseWrapper

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

public class JsonResponseWrapper
extends java.lang.Object
Author:
etienne-sf
  • Field Summary

    Fields 
    Modifier and Type Field Description
    com.fasterxml.jackson.databind.JsonNode data
    This contains the data coming from the GraphQL part.
    java.util.List<Error> errors
    This optional field contains the errors, when one or more errors occurred
    com.fasterxml.jackson.databind.JsonNode extensions
    This field is described in the GraphQL specification.
  • Constructor Summary

    Constructors 
    Constructor Description
    JsonResponseWrapper()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 java.util.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

      Constructor Details