-
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
apollo-server-express: Use req.originalUrl inside ApolloServer #2451
Conversation
…nalUrl as playground endpoint.
@miguepintor: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
const outerApp = express(); | ||
outerApp.use(samplePath, innerApp); | ||
|
||
const httpRewiredServer = await new Promise<http.Server>(resolve => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not asking but if you're so compelled, a follow-up PR that DRYs up these tests would sure be very much welcomed.
Thanks for this PR! It's been published in |
Err, sorry, canned copy-paste for releases. This is only on |
This pr solves a minor issue.
When the apollo server express app is part (or it is used) inside other express apps the endpoint used to mount the playground is in correct.