Package 

Class FederatedSchemaGenerator

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public class FederatedSchemaGenerator
    extends SchemaGenerator
                        

    Generates federated GraphQL schemas based on the specified configuration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class com.expediagroup.graphql.generator.federation.FederatedSchemaGenerator

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.