Replies: 1 comment
-
I've just fixed #2886 (which should go out in a future version, probably 2.23.0). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project that is using
apollo-server-express
and supporting both a standard graphql endpoint, and several other REST endpoints. I want to be able to run queries and mutations from elsewhere in my code (including from those REST endpoints that I mentioned). The best way that I have found do that is to use theserver.executeOperation
method, which does what I want; however it generates a context as a part of my standard context generator function _without passing myexpress
Request
orResponse
objects to the context generator.This behavior is described in #2886.
I see that there is a PR which adds the ability to use and alternative context object, but it was never merged.
I have two questions:
Beta Was this translation helpful? Give feedback.
All reactions