GraphRequestConverter

open class GraphRequestConverter(methodAnnotations: Array<out Annotation>, graphProcessor: AbstractGraphProcessor, gson: Gson, registry: GraphQLDocumentRegistry? = null) : Converter<Any, RequestBody> (source)

GraphQL request body converter and injector, uses method annotation for a given retrofit method.

Supports both the legacy QueryContainerBuilder flow and the new GraphQLRequest flow. When a GraphQLDocumentRegistry is provided, it is checked before falling back to the asset-based AbstractGraphProcessor lookup (only for QueryContainerBuilder flow). Registry-only converter factory overloads use a strict no-op processor that throws when an annotated operation is missing.

Parameters

methodAnnotations

Annotations applied to the Retrofit method.

graphProcessor

The processor used for asset-based query resolution.

gson

Gson instance for serialization.

registry

Optional registry providing build-time generated documents and hashes.

Constructors

Link copied to clipboard
constructor(methodAnnotations: Array<out Annotation>, graphProcessor: AbstractGraphProcessor, gson: Gson, registry: GraphQLDocumentRegistry? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun convert(value: Any): RequestBody

Converter for the request body. Dispatches to the appropriate handler based on the body type.