Skip to content

Commit 75eb863

Browse files
committed
update docs, remove warnings
1 parent f04aefd commit 75eb863

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

Writerside/topics/ktor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

apollo-execution-gradle-plugin/src/main/kotlin/com/apollographql/execution/gradle/ApolloExecutionExtension.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

apollo-execution-processor/src/main/kotlin/com/apollographql/execution/processor/schema.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
@file:OptIn(ApolloExperimental::class)
2+
13
package com.apollographql.execution.processor
24

5+
import com.apollographql.apollo.annotations.ApolloExperimental
6+
37
import com.apollographql.apollo.ast.*
48
import com.apollographql.execution.processor.sir.*
59
import okio.Buffer

apollo-execution-runtime/src/commonMain/kotlin/com/apollographql/execution/internal/OperationContext.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

apollo-execution-runtime/src/commonMain/kotlin/com/apollographql/execution/internal/prepare.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@file:Suppress("UNCHECKED_CAST")
2+
@file:OptIn(ApolloExperimental::class)
23

34
package com.apollographql.execution.internal
45

@@ -8,6 +9,7 @@ import arrow.core.raise.Raise
89
import arrow.core.raise.either
910
import arrow.core.raise.withError
1011
import arrow.core.right
12+
import com.apollographql.apollo.annotations.ApolloExperimental
1113
import com.apollographql.apollo.api.Error
1214
import com.apollographql.apollo.ast.*
1315
import com.apollographql.execution.*

0 commit comments

Comments
 (0)