Class JsonResponseWrapper
java.lang.Object
com.graphql_java_generator.client.response.JsonResponseWrapper
- Author:
- etienne-sf
-
Field Summary
Modifier and TypeFieldDescriptioncom.fasterxml.jackson.databind.JsonNode
This contains the data coming from the GraphQL part.This optional field contains the errors, when one or more errors occurredcom.fasterxml.jackson.databind.JsonNode
This field is described in the GraphQL specification. -
Constructor Summary
-
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 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()
-