GraphQLResponseConverter
Backend-neutral GraphQL response body converter.
GraphQLResponseConverter is the neutral counterpart of the legacy GraphResponseConverter. It delegates deserialization entirely to a GraphQLTransportCodec and never references a JSON backend.
Type and body forwarding
The raw response body string and the complete Java Type of the response as declared by the Retrofit method (for example GraphQLResponse<GetCurrentUserData>) are forwarded to GraphQLTransportCodec.decodeResponse so the codec can resolve the parameterized data serializer.
Failure behavior
Codec failures propagate as co.anitrend.retrofit.graphql.serialization.GraphQLResponseDecodingException, which already carries the response type context.
I/O failures while reading the response body propagate as IOException with the target response type attached to the message.
Failures are never printed and never converted to null: conversion either returns a decoded value or throws.
Parameters
The complete Java reflection Type of the response, including generic arguments, as provided by Retrofit.
The explicit GraphQLTransportCodec used to deserialize bodies.
Type Parameters
The decoded response type, typically co.anitrend.retrofit.graphql.model.GraphQLResponse of a data type.