encodeRequest

abstract fun encodeRequest(request: GraphQLOperationRequest<*>, requestType: Type): String(source)

Serializes a GraphQL operation request into a raw body string.

Return

The serialized body string.

Parameters

request

The operation request to serialize.

requestType

The complete Type of request as declared by the caller, including generic arguments (for example GraphQLOperationRequest<GetUserVariables>).

Throws

when serialization fails.