Skip to content

Commit a69803b

Browse files
authored
Update README.md
1 parent 9a2a297 commit a69803b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ dependencies {
3030
# Usage
3131

3232
The servlet supports both GET and POST. For GET requests, query parameters are read.
33-
In POST, plain request body containing JSON is supported, as well as a multipart upload with a part called 'graphql' containing JSON. All methods expect the following fields:
33+
In POST, plain request body containing JSON is supported, as well as a multipart upload with a part called 'graphql' containing JSON.
34+
35+
All methods expect the following fields:
3436
* query
3537
* variables (optional)
3638
* operationName (optional)
@@ -43,7 +45,7 @@ GraphQLServlet servlet = new SimpleGraphQLServlet(schema, executionStrategy);
4345

4446
// or
4547

46-
GraphQLServlet servlet = new SimpleGraphQLServlet(schema, executionStrategy, operationListeners);
48+
GraphQLServlet servlet = new SimpleGraphQLServlet(schema, executionStrategy, operationListeners, servletListeners);
4749
```
4850

4951
You can also add [operation listeners](https://github.com/graphql-java/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/GraphQLOperationListener.java) and [servlet listeners](https://github.com/graphql-java/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/GraphQLServletListener.java) to an existing servlet.

0 commit comments

Comments
 (0)