Skip to content

Commit 94c5e1a

Browse files
authored
Update README.md
1 parent cb91611 commit 94c5e1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ GraphQLServlet servlet = new SimpleGraphQLServlet(schema, executionStrategy);
5656
GraphQLServlet servlet = new SimpleGraphQLServlet(schema, executionStrategy, operationListeners, servletListeners);
5757
```
5858

59+
## Operation and Servlet Listeners
60+
5961
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.
6062
These listeners provide hooks into query execution (before, on success, and on failure) and servlet execution (before, on error, and finally):
6163
```java

0 commit comments

Comments
 (0)