-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] Any plans to export graphqlExpress as well from apollo-server-express #1726
Comments
Kind of a hack, but you can import it currently from here: import { graphqlExpress } from 'apollo-server-express/dist/expressApollo' I'm using it to extend ApolloServer with a custom async schema (example) |
Thanks @sbrichardson. That is exactly what i am also doing right now. Thought i could avoid the Thanks for sharing the example code. |
Any clue where to acquire "graphiqlExpress" ? |
@mjasnikovs See my related comment here: #1308 (comment) |
I've noticed there are a lot of similar requests coming in for the missing middleware in v2. I'm wondering if we should consolidate them in one issue and close the others. This one seems like the best candidate: #1308 |
applyMiddleware
really helps to add the middleware existing app.However it would be really awesome, if the
graphqlExpress
is also exposed to users.Any possible way to access graphqlExpress directly from
ApolloServer
or theapollo-server-express
module?This will really help anyone want to pass the middleware function to lets say a router module that would take of applying the middleware.
The text was updated successfully, but these errors were encountered: