Skip to content

Commit 8796749

Browse files
authored
fix(federation): update federated hooks to support flow (#1864)
### 📝 Description As of v2.4, Federation supports subscriptions. Our servers automatically configure hooks for subscription `Flow` support for non-federated schemas. We should update federated hooks to also support `Flow`. ### 🔗 Related Issues Resolves: #1862
1 parent f056e9d commit 8796749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaGeneratorHooks.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import com.expediagroup.graphql.generator.federation.types.SERVICE_FIELD_DEFINIT
7373
import com.expediagroup.graphql.generator.federation.types._Service
7474
import com.expediagroup.graphql.generator.federation.types.generateEntityFieldDefinition
7575
import com.expediagroup.graphql.generator.federation.validation.FederatedSchemaValidator
76-
import com.expediagroup.graphql.generator.hooks.SchemaGeneratorHooks
76+
import com.expediagroup.graphql.generator.hooks.FlowSubscriptionSchemaGeneratorHooks
7777
import graphql.TypeResolutionEnvironment
7878
import graphql.schema.DataFetcher
7979
import graphql.schema.FieldCoordinates
@@ -97,7 +97,7 @@ import kotlin.reflect.full.findAnnotation
9797
open class FederatedSchemaGeneratorHooks(
9898
private val resolvers: List<FederatedTypeResolver>,
9999
private val optInFederationV2: Boolean = true
100-
) : SchemaGeneratorHooks {
100+
) : FlowSubscriptionSchemaGeneratorHooks() {
101101
private val validator: FederatedSchemaValidator = FederatedSchemaValidator()
102102
data class LinkSpec(val namespace: String, val imports: Map<String, String>)
103103
private val linkSpecs: MutableMap<String, LinkSpec> = HashMap()

0 commit comments

Comments
 (0)