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.Data> mutation(mutation: Mutation<D>): ApolloCall<D>

Prepare a mutation to be executed.

Link copied to clipboard
abstract fun <D : Query.Data> query(query: Query<D>): ApolloCall<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.Data> subscription(subscription: Subscription<D>): ApolloCall<D>

Prepare a subscription to be executed.

Link copied to clipboard
abstract fun subscriptionUrl(): String

The URL of the GraphQL server subscription.