Replies: 1 comment
-
Forgot to add @component to the resolver 🤦 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, any ideas why this is not working?
https://community.apollographql.com/t/apollo-router-and-hive-federation/7243
The response from the MS is
gradle settings file
application yaml file
class PropertyResolver(
private val control: IApartmentGraphqlControl
) : FederatedTypeSuspendResolver<PropertyResolver.Property> {
override val typeName = "Property"
override suspend fun resolve(
environment: DataFetchingEnvironment,
representation: Map<String, Any>
): Property? =
representation["primaryKey"]?.toString()?.let { id -> Property(id, control) }
}
Beta Was this translation helpful? Give feedback.
All reactions