Class LinkDirectiveProcessor
java.lang.Object
com.apollographql.federation.graphqljava.directives.LinkDirectiveProcessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Stream<graphql.language.SDLNamedDefinition>loadFederationImportedDefinitions(graphql.schema.idl.TypeDefinitionRegistry typeDefinitionRegistry) Load all Federation V2 definitions based on the `@link` imports.
-
Method Details
-
loadFederationImportedDefinitions
@Nullable public static @Nullable Stream<graphql.language.SDLNamedDefinition> loadFederationImportedDefinitions(graphql.schema.idl.TypeDefinitionRegistry typeDefinitionRegistry) Load all Federation V2 definitions based on the `@link` imports.- Parameters:
typeDefinitionRegistry-- Returns:
- Stream of Federation V2 SDLNamedDefinitions
- Throws:
MultipleFederationLinksException- if schema contains multiple `@link` directives importing federation specification
-