Apollo Adapters Help

Welcome

Add the dependency:

dependencies { // ... implementation("com.apollographql.ktor:apollo-engine-ktor:0.0.2") }

And configure your ApolloClient to use the Ktor engine:

val client = ApolloClient.Builder() .serverUrl("https://example.com/graphql") // Create a new Ktor engine .httpEngine(KtorHttpEngine()) // Or, if you want to reuse an existing Ktor client .ktorClient(myKtorClient) .build()
Last modified: 11 July 2024