This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
graphql-kickstart-spring-boot-autoconfigure-tools/src/main/java/graphql/kickstart/tools/boot
graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/spring/web/boot Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ subprojects {
3636 group " $PROJECT_GROUP "
3737
3838 repositories {
39- // mavenLocal()
39+ mavenLocal()
4040 mavenCentral()
4141 jcenter()
4242 maven { url " https://dl.bintray.com/graphql-java-kickstart/releases" }
Original file line number Diff line number Diff line change 1010import graphql .kickstart .tools .PerFieldObjectMapperProvider ;
1111import graphql .kickstart .tools .SchemaParser ;
1212import graphql .kickstart .tools .SchemaParserBuilder ;
13- import graphql .kickstart .tools .SchemaParserDictionary ;
1413import graphql .kickstart .tools .SchemaParserOptions ;
1514import graphql .kickstart .tools .SchemaParserOptions .GenericWrapper ;
1615import graphql .kickstart .tools .TypeDefinitionFactory ;
4645public class GraphQLJavaToolsAutoConfiguration {
4746
4847 @ Autowired (required = false )
49- private SchemaParserDictionary dictionary ;
48+ private SchemaParserBuilder schemaParserBuilder ;
5049
5150 @ Autowired (required = false )
5251 private GraphQLScalarType [] scalars ;
@@ -123,7 +122,7 @@ public SchemaParser schemaParser(
123122 SchemaStringProvider schemaStringProvider ,
124123 SchemaParserOptions .Builder optionsBuilder
125124 ) throws IOException {
126- SchemaParserBuilder builder = dictionary != null ? new SchemaParserBuilder ( dictionary ) : new SchemaParserBuilder ();
125+ SchemaParserBuilder builder = schemaParserBuilder != null ? schemaParserBuilder : new SchemaParserBuilder ();
127126
128127 List <String > schemaStrings = schemaStringProvider .schemaStrings ();
129128 schemaStrings .forEach (builder ::schemaString );
Original file line number Diff line number Diff line change 3838import graphql .kickstart .servlet .AbstractGraphQLHttpServlet ;
3939import graphql .kickstart .servlet .GraphQLConfiguration ;
4040import graphql .kickstart .servlet .GraphQLHttpServlet ;
41+ import graphql .kickstart .servlet .cache .GraphQLResponseCache ;
4142import graphql .kickstart .servlet .config .DefaultGraphQLSchemaServletProvider ;
4243import graphql .kickstart .servlet .config .GraphQLSchemaServletProvider ;
4344import graphql .kickstart .servlet .context .GraphQLServletContextBuilder ;
@@ -130,6 +131,9 @@ public class GraphQLWebAutoConfiguration {
130131 @ Autowired (required = false )
131132 private BatchInputPreProcessor batchInputPreProcessor ;
132133
134+ @ Autowired (required = false )
135+ private GraphQLResponseCache graphQLResponseCache ;
136+
133137 @ PostConstruct
134138 void postConstruct () {
135139 if (errorHandler != null ) {
@@ -287,6 +291,7 @@ public GraphQLConfiguration graphQLServletConfiguration(GraphQLInvocationInputFa
287291 .with (graphQLServletProperties .getSubscriptionTimeout ())
288292 .with (batchInputPreProcessor )
289293 .with (graphQLServletProperties .getContextSetting ())
294+ .with (graphQLResponseCache )
290295 .build ();
291296 }
292297
You can’t perform that action at this time.
0 commit comments