GraphQLClientFactory

Functions

Link copied to clipboard
fun basicClient(host: String = DefaultGraphQLSettings.DEFAULT_HOST, port: Int = DefaultGraphQLSettings.DEFAULT_PORT): GraphQLClient

Returns a lightweight GraphQLClient capable of executing queries and mutations. Note: this client is not capable of executing subscriptions.

Link copied to clipboard
fun subscriptionClient(host: String = DefaultGraphQLSettings.DEFAULT_HOST, port: Int = DefaultGraphQLSettings.DEFAULT_PORT): GraphQLClient

Returns a GraphQLClient capable of executing queries, mutations and subscriptions.