Class SpqrSchemaGenerator

java.lang.Object
io.leangen.graphql.GraphQLSchemaGenerator
io.jmix.graphql.spqr.BaseSpqrSchemaGenerator
io.jmix.graphql.spqr.SpqrSchemaGenerator

public class SpqrSchemaGenerator extends BaseSpqrSchemaGenerator
  • Field Details

  • Constructor Details

  • Method Details

    • withDataFetchers

      public SpqrSchemaGenerator withDataFetchers(graphql.schema.GraphQLCodeRegistry dataFetchers)
    • generate

      public graphql.schema.GraphQLSchema generate()
      Description copied from class: BaseSpqrSchemaGenerator
      Generates a GraphQL schema based on the results of analysis of the registered sources. All exposed methods will be mapped as queries or mutations and all Java types referred to by those methods will be mapped to corresponding GraphQL types. Such schema can then be used to construct GraphQL instances. See the example in the description of this class.
      Overrides:
      generate in class BaseSpqrSchemaGenerator
      Returns:
      A GraphQL schema
    • init

      protected void init()
      Description copied from class: BaseSpqrSchemaGenerator
      Sets the default values for all settings not configured explicitly, ensuring the builder is in a valid state
      Overrides:
      init in class BaseSpqrSchemaGenerator