DefaultGraphQLClient
data class DefaultGraphQLClient(val host: String = DefaultGraphQLSettings.DEFAULT_HOST, val port: Int = DefaultGraphQLSettings.DEFAULT_PORT, enableSubscription: Boolean = false) : GraphQLClient
Default GraphQL client implementation.
Parameters
host
the host of the GraphQL server
port
the port of the GraphQL server
enableSubscription
whether to enable subscriptions or not
Properties
Functions
Link copied to clipboard
open override fun <D : Subscription.Data> subscription(subscription: Subscription<D>): ApolloCall<D>
Prepare a subscription to be executed.
Link copied to clipboard
The URL of the GraphQL server subscription.