-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public class FederatedSchemaGenerator extends SchemaGenerator
Generates federated GraphQL schemas based on the specified configuration.
-
-
Constructor Summary
Constructors Constructor Description FederatedSchemaGenerator(FederatedSchemaGeneratorConfig generatorConfig)
-
Method Summary
Modifier and Type Method Description GraphQLSchema
generateSchema(List<TopLevelObject> queries, List<TopLevelObject> mutations, List<TopLevelObject> subscriptions, Set<KType> additionalTypes, Set<KType> additionalInputTypes, TopLevelObject schemaObject)
Scans specified packages for all the federated (extended) types and adds them to the schema additional types, then it generates the schema as usual using the FederatedSchemaGeneratorConfig. -
-
Constructor Detail
-
FederatedSchemaGenerator
FederatedSchemaGenerator(FederatedSchemaGeneratorConfig generatorConfig)
-
-
Method Detail
-
generateSchema
GraphQLSchema generateSchema(List<TopLevelObject> queries, List<TopLevelObject> mutations, List<TopLevelObject> subscriptions, Set<KType> additionalTypes, Set<KType> additionalInputTypes, TopLevelObject schemaObject)
Scans specified packages for all the federated (extended) types and adds them to the schema additional types, then it generates the schema as usual using the FederatedSchemaGeneratorConfig.
-
-
-
-