Class SpringConfiguration
java.lang.Object
com.graphql_java_generator.gradleplugin.SpringConfiguration
@Configuration
@ComponentScan(basePackages="com.graphql_java_generator")
public class SpringConfiguration
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description SpringConfiguration() -
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.
-
Constructor Details
-
SpringConfiguration
public SpringConfiguration()
-
-
Method Details
-
documents
@Bean public java.util.List<graphql.language.Document> documents(com.graphql_java_generator.plugin.ResourceSchemaStringProvider schemaStringProvider) throws org.gradle.api.GradleScriptExceptionLoads 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
-