requestBodyConverter

open override fun requestBodyConverter(type: Type, parameterAnnotations: Array<out Annotation>, methodAnnotations: Array<out Annotation>, retrofit: Retrofit): Converter<*, RequestBody>?(source)

Returns the GraphQLRequestConverter used to encode request bodies through the factory's GraphQLTransportCodec.

The complete Java type of the body parameter (for example GraphQLOperationRequest<GetUserVariables>) is forwarded so the codec can resolve the typed variables serializer.

Parameters

type

The type of the body parameter of the request.

parameterAnnotations

All annotations applied to the parameter.

methodAnnotations

All annotations applied to the method.

retrofit

The Retrofit instance the converter is registered on.