-
Notifications
You must be signed in to change notification settings - Fork 111
Description
I'm upgrading an old version of graphql-java-servlet up to 6.1.3.
In the existing code, I extended SimpleGraphQLServlet, overwrote createContext() to make it to return a wrapper which added an addCookie() method so I could add a cookie from my resolver via dataFetchingEnvironment.getContext().addCookie().
This all broken with the upgrade, and I'm not seeing any clarity as to whether I can do this in 6.1.x. I now see the new way to build the servlet (GraphQLServletListener, etc.), but I'm not seeing an equivalent of createContext(). I do see the GraphQLContextBuilder and I think I understand how I can use it to create the customized context, but it's not clear to me how I can connect the result of GraphQLContextBuilder.build () to a GraphQLServletListener so I can fetch it from the data fetching environment in my resolver. Can anyone show me what I'm missing or point me in the right direction? Thanks.