Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit ebf3bd6

Browse files
committed
Pass listeners to SimpleGraphQLHttpServlet (fix #109)
Requires new release of graphql-java-servlet.
1 parent 38d337b commit ebf3bd6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

example-graphql-tools/src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ spring:
33
name: graphql-java-tools-app
44
server:
55
port: 9000
6+
graphiql:
7+
headers:
8+
Authorization: "Bearer 05bd9a5f3fe0408f89520946b0fe1b06"

example/src/main/java/com/oembedler/moon/graphql/boot/sample/ApplicationBootConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@SpringBootApplication
3333
public class ApplicationBootConfiguration {
3434

35-
public static void main(String[] args) throws Exception {
35+
public static void main(String[] args) {
3636
SpringApplication.run(ApplicationBootConfiguration.class, args);
3737
}
3838

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ TARGET_COMPATIBILITY = 1.8
3939
LIB_GRAPHQL_JAVA_VER = 9.2
4040
LIB_JUNIT_VER = 4.12
4141
LIB_SPRING_CORE_VER = 5.0.4.RELEASE
42-
LIB_SPRING_BOOT_VER = 2.0.3.RELEASE
43-
LIB_GRAPHQL_SERVLET_VER = 6.1.2
42+
LIB_SPRING_BOOT_VER = 2.0.4.RELEASE
43+
LIB_GRAPHQL_SERVLET_VER = 6.1.3-SNAPSHOT
4444
LIB_GRAPHQL_JAVA_TOOLS_VER = 5.2.3
4545
LIB_COMMONS_IO_VER = 2.6
4646

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public SimpleGraphQLHttpServlet graphQLHttpServlet(GraphQLInvocationInputFactory
203203
return SimpleGraphQLHttpServlet.newBuilder(invocationInputFactory)
204204
.withQueryInvoker(queryInvoker)
205205
.withObjectMapper(graphQLObjectMapper)
206+
.withListeners(listeners)
206207
.build();
207208
}
208209

0 commit comments

Comments
 (0)