Skip to content
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

Merged
merged 5 commits into from
Apr 5, 2019

Conversation

miguepintor
Copy link

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.
image

@apollo-cla
Copy link

@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/

Copy link
Member

@abernix abernix left a 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 => {
Copy link
Member

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.

@abernix abernix changed the base branch from master to release-2.5.0 April 5, 2019 11:05
@abernix abernix added this to the Release 2.5.0 milestone Apr 5, 2019
@abernix abernix merged commit 47620dd into apollographql:release-2.5.0 Apr 5, 2019
@abernix
Copy link
Member

abernix commented Apr 5, 2019

Thanks for this PR!

It's been published in apollo-server@2.5.0-alpha.3 — and the various integrations like apollo-server-express, apollo-server-hapi, etc. — of the same version!

@abernix
Copy link
Member

abernix commented Apr 5, 2019

Err, sorry, canned copy-paste for releases. This is only on apollo-server-express. 😄

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants