This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push:
new 16d001d Configure Vert.x BodyHandler for GraphQLTest server
16d001d is described below
commit 16d001dc567b06e3839a5927ff6b363b1bb6c8ea
Author: James Netherton <[email protected]>
AuthorDate: Fri Apr 30 15:25:05 2021 +0100
Configure Vert.x BodyHandler for GraphQLTest server
---
.../org/apache/camel/quarkus/component/graphql/it/GraphQLResource.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/integration-tests/graphql/src/main/java/org/apache/camel/quarkus/component/graphql/it/GraphQLResource.java
b/integration-tests/graphql/src/main/java/org/apache/camel/quarkus/component/graphql/it/GraphQLResource.java
index e419119..da59d2e 100644
---
a/integration-tests/graphql/src/main/java/org/apache/camel/quarkus/component/graphql/it/GraphQLResource.java
+++
b/integration-tests/graphql/src/main/java/org/apache/camel/quarkus/component/graphql/it/GraphQLResource.java
@@ -43,6 +43,7 @@ import graphql.schema.idl.SchemaGenerator;
import graphql.schema.idl.SchemaParser;
import graphql.schema.idl.TypeDefinitionRegistry;
import io.vertx.ext.web.Router;
+import io.vertx.ext.web.handler.BodyHandler;
import io.vertx.ext.web.handler.graphql.GraphQLHandler;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.quarkus.component.graphql.it.model.Book;
@@ -85,6 +86,7 @@ public class GraphQLResource {
GraphQL graphQL = GraphQL.newGraphQL(graphQLSchema).build();
+ router.post().handler(BodyHandler.create());
router.route("/graphql/server").handler(GraphQLHandler.create(graphQL));
}