File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed
apollo-execution-gradle-plugin/src/main/kotlin/com/apollographql/execution/gradle
apollo-execution-processor/src/main/kotlin/com/apollographql/execution/processor
apollo-execution-runtime/src/commonMain/kotlin/com/apollographql/execution/internal Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ dependencies {
1111 implementation(" com.apollographql.execution:apollo-execution-ktor:%latest_version%" )
1212 // This sample uses netty as an engine.
1313 // See https://ktor.io/ for other choices.
14- implementation(" io.ktor:ktor-server-netty:2.3.11 " )
14+ implementation(" io.ktor:ktor-server-netty:3.0.0 " )
1515}
1616```
1717
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ abstract class ApolloExecutionExtension @Inject constructor(val project: Project
1414 if (hasService) {
1515 error(" Apollo: there can be only one execution service. Use different Gradle module for different services." )
1616 }
17+ if (! project.pluginManager.hasPlugin(" com.google.devtools.ksp" )) {
18+ error(" Apollo: the 'com.apollographql.execution' plugin requires the 'com.google.devtools.ksp' plugin." )
19+ }
1720 val service = project.objects.newInstance(ApolloExecutionService ::class .java)
1821
1922 action.execute(service)
Original file line number Diff line number Diff line change 1+ @file:OptIn(ApolloExperimental ::class )
2+
13package com.apollographql.execution.processor
24
5+ import com.apollographql.apollo.annotations.ApolloExperimental
6+
37import com.apollographql.apollo.ast.*
48import com.apollographql.execution.processor.sir.*
59import okio.Buffer
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ internal class OperationContext(
9797 return flowOf(SubscriptionError (listOf (Error .Builder (message).build())))
9898 }
9999
100+ @OptIn(ExperimentalCoroutinesApi ::class )
100101 private fun resolveFieldEventStream (
101102 subscriptionType : GQLObjectTypeDefinition ,
102103 rootValue : ResolverValue ,
Original file line number Diff line number Diff line change 11@file:Suppress(" UNCHECKED_CAST" )
2+ @file:OptIn(ApolloExperimental ::class )
23
34package com.apollographql.execution.internal
45
@@ -8,6 +9,7 @@ import arrow.core.raise.Raise
89import arrow.core.raise.either
910import arrow.core.raise.withError
1011import arrow.core.right
12+ import com.apollographql.apollo.annotations.ApolloExperimental
1113import com.apollographql.apollo.api.Error
1214import com.apollographql.apollo.ast.*
1315import com.apollographql.execution.*
You can’t perform that action at this time.
0 commit comments