Package-level declarations

Types

Link copied to clipboard
@Serializable
class DefaultGQLError(val message: String, val locations: List<GQLError.ErrorLocations>? = null, val path: List<String>? = null, val extensions: JsonObject? = null) : GQLError

Default implementation of GQLError.

Link copied to clipboard
class GQLClient(val httpClient: HttpClient = HttpClient(), val json: Json = Json)

Client used to send HTTP POST requests to an api

Link copied to clipboard
interface GQLError

Represents GraphQL errors that can be received. Implement this class to deserialize custom errors.

Link copied to clipboard
data class HttpHeader(val name: String, val value: String)

Simple wrapper class representing a header entry for a HTTP request.

Link copied to clipboard
class Response<T, E : GQLError>(val data: T? = null, val errors: List<E>? = null, val httpResponse: HttpResponse)

Deserialized response string received from a query or mutation.

Link copied to clipboard
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.