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.JsonNodedataThis contains the data coming from the GraphQL part.java.util.List<Error>errorsThis optional field contains the errors, when one or more errors occurredcom.fasterxml.jackson.databind.JsonNodeextensionsThis field is absent from the GraphQL specification. -
Constructor Summary
Constructors Constructor Description JsonResponseWrapper() -
Method Summary
-
Field Details
-
data
public com.fasterxml.jackson.databind.JsonNode dataThis 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
This optional field contains the errors, when one or more errors occurred -
extensions
public com.fasterxml.jackson.databind.JsonNode extensionsThis field is absent from the GraphQL specification. But Shopify returns it. So this field is here, only to allow the JSON response parsing. Its content is not parsed.
-
-
Constructor Details
-
JsonResponseWrapper
public JsonResponseWrapper()
-