GraphQL

sealed interface GraphQL : MainPlugin<GraphQL.Config> (source)

Adds an Apollo GraphQL client to supabase-kt with all necessary headers automatically managed.

This plugin uses the default GraphQL endpoint for supabase projects and adds the apikey and Authorization headers automatically

Types

Link copied to clipboard
Link copied to clipboard
data class Config(apolloConfiguration: ApolloClient.Builder.() -> Unit = {}) : MainConfig

Config for the GraphQL plugin

Properties

Link copied to clipboard
abstract val apiVersion: Int
Link copied to clipboard
abstract val apolloClient: ApolloClient

The Apollo Client. Customizable via Config.apolloConfiguration

Link copied to clipboard
abstract val config: GraphQL.Config
Link copied to clipboard
abstract val pluginKey: String
Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun close()
Link copied to clipboard
open fun init()
Link copied to clipboard
abstract suspend fun parseErrorResponse(response: HttpResponse): RestException
Link copied to clipboard
open fun resolveUrl(path: String): String