Skip to content

Commit fcc16af

Browse files
committed
Pass in graphql object builder into graphql config
1 parent e19ab31 commit fcc16af

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 7.0.0-SNAPSHOT
1+
version = 7.0.1-SNAPSHOT
22
group = com.graphql-java-kickstart
33

44
LIB_GRAPHQL_JAVA_VER = 11.0

src/main/java/graphql/servlet/GraphQLConfiguration.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ public Builder with(boolean asyncServletModeEnabled) {
9999
return this;
100100
}
101101

102+
public Builder with(GraphQLContextBuilder contextBuilder) {
103+
this.invocationInputFactoryBuilder.withGraphQLContextBuilder(contextBuilder);
104+
return this;
105+
}
106+
107+
public Builder with(GraphQLRootObjectBuilder rootObjectBuilder) {
108+
this.invocationInputFactoryBuilder.withGraphQLRootObjectBuilder(rootObjectBuilder);
109+
return this;
110+
}
111+
102112
public GraphQLConfiguration build() {
103113
return new GraphQLConfiguration(
104114
this.invocationInputFactory != null ? this.invocationInputFactory : invocationInputFactoryBuilder.build(),

0 commit comments

Comments
 (0)