GraphResponseConverter
Deprecated
Legacy response converter of the GraphConverter flow. Use GraphQLResponseConverter with an explicit GraphQLTransportCodec instead.
GraphQL response body converter to unwrap nested object results, resulting in a smaller generic tree for requests.
Legacy: this converter lives in :compat for the deprecated co.anitrend.retrofit.graphql.converter.GraphConverter flow. New code should use the backend-neutral co.anitrend.retrofit.graphql.converter.response.GraphQLResponseConverter from :runtime.
Serialization
Response deserialization is delegated to GraphQLJson.decode. The full parameterized type (e.g. GraphContainer<GetCurrentUserData>) is forwarded so that serializers with parameterized type awareness (e.g. KotlinxGraphQLJson via kotlinx.serialization.serializer(type)) can resolve the correct KSerializer.
GraphQLJson.decode may throw if the response JSON is invalid or if no serializer can be resolved for the target type. These errors propagate to Retrofit's caller.
Parameters
The target deserialization type including parameterized type info (e.g. GraphContainer<Foo>). Must not be null when called from Retrofit.
Pluggable GraphQLJson instance for deserialization.