StringResponse

class StringResponse(val data: String? = null, val errors: String? = null, val httpResponse: HttpResponse)

Wraps the response and error received from a query or mutation as a string.

Constructors

Link copied to clipboard
constructor(data: String? = null, errors: String? = null, httpResponse: HttpResponse)

Properties

Link copied to clipboard
val data: String? = null

The returned data if available. null if no data was received.

Link copied to clipboard
val errors: String? = null

The returned errors if available. null if no data was received.

Link copied to clipboard
val httpResponse: HttpResponse

The HttpResponse as returned by ktor.