Class GraphQLGenerateCodeSpringConfiguration

java.lang.Object
com.graphql_java_generator.gradleplugin.GraphQLGenerateCodeSpringConfiguration

@Configuration
@ComponentScan(basePackageClasses={com.graphql_java_generator.plugin.DocumentParser.class,com.graphql_java_generator.util.GraphqlUtils.class},excludeFilters={,,,})
public class GraphQLGenerateCodeSpringConfiguration
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphQLGenerateCodeSpringConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<graphql.language.Document> documents​(com.graphql_java_generator.plugin.ResourceSchemaStringProvider schemaStringProvider)
    Loads the schema from the graphqls files.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • documents

      @Bean public java.util.List<graphql.language.Document> documents​(com.graphql_java_generator.plugin.ResourceSchemaStringProvider schemaStringProvider) throws org.gradle.api.GradleScriptException
      Loads the schema from the graphqls files. This method uses the GraphQLJavaToolsAutoConfiguration from the project, to load the schema from the graphqls files
      Parameters:
      schemaStringProvider - The String Provider
      Returns:
      the Documents to read
      Throws:
      org.gradle.api.GradleScriptException - When an error occurs while reading or parsing the graphql definition files