Open RoKKim opened 6 months ago
Seems like we need similar or expose imports from LinkDirectiveProcessor https://github.com/apollographql/federation-jvm/blob/main/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/directives/LinkDirectiveProcessor.java#L123
Let's say I import the
@key
directive as@myKey
:In this scenario, the following code inside the
com.apollographql.federation.graphqljava.SchemaTransformer#entityPredicate
method will fail:entityCandidate.getAllDirectivesByName().containsKey(FederationDirectives.keyName)
This occurs because
FederationDirectives.keyName
is hardcoded to "key". As a result, the_Entity
will not be generated in the schema by thecom.apollographql.federation.graphqljava.SchemaTransformer#build
.