GraphQLClient

interface GraphQLClient

The most basic GraphQL client, capable of executing queries, mutations and subscriptions.

Inheritors

Properties

Link copied to clipboard
abstract val host: String

The address of the GraphQL server.

Link copied to clipboard
abstract val port: Int

The port of the GraphQL server.

Functions

Link copied to clipboard
abstract fun close()

Closes the client.

Link copied to clipboard
abstract fun <D> mutation(mutation: <Error class: unknown class><D>): <Error class: unknown class><D>

Prepare a mutation to be executed.

Link copied to clipboard
abstract fun <D> query(query: <Error class: unknown class><D>): <Error class: unknown class><D>

Prepare a query to be executed.

Link copied to clipboard
open fun serverUrl(): String

The URL of the GraphQL server.

Link copied to clipboard
abstract fun <D> subscription(subscription: <Error class: unknown class><D>): <Error class: unknown class><D>

Prepare a subscription to be executed.

Link copied to clipboard
abstract fun subscriptionUrl(): String

The URL of the GraphQL server subscription.