Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

fix playground/graphiql on lambda #306

Merged
merged 2 commits into from
Feb 9, 2018
Merged

Conversation

Ponjimon
Copy link
Contributor

@Ponjimon Ponjimon commented Feb 9, 2018

@sid88in
Copy link
Contributor

sid88in commented Feb 9, 2018

awesome! thanks @lookapanda . Although I am not sure if we need these changes in rest and dynamodb backend because they are working. The only problem we see is with RDS (maybe based on long lasting connections). Any reason we need to make these changes in dynamo/rest as well?

? process.env.REACT_APP_GRAPHQL_ENDPOINT
: '/production/graphql',
});
exports.playgroundHandler = (event, context, callback) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think we need this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need what?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean I don't think we need these changes in rest and dynamodb backend. GraphiQL and Playground are working with those backends. We only see problem with RDS

? process.env.REACT_APP_GRAPHQL_ENDPOINT
: '/production/graphql',
});
exports.playgroundHandler = (event, context, callback) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think we need this

@Ponjimon
Copy link
Contributor Author

Ponjimon commented Feb 9, 2018

I just assumed it isn't working for the others aswell, I was using RDS when I noticed it isn't working. For testing I had to use my private AWS account and I don't have a running RDS instance, sorry :P

@sid88in
Copy link
Contributor

sid88in commented Feb 9, 2018

Fair enough :)

  1. Will be great if can you please revert back changes for dynamo and rest.
  2. Did you test this PR (for RDS) on a running RDS instance or local ?

@Ponjimon
Copy link
Contributor Author

Ponjimon commented Feb 9, 2018

I didn't test this particular PR for RDS, but as I said, on our project, we're using it with RDS and I had to do this change to make it work. It was already running locally, it's only an issue on the actual Lambda.

@sid88in
Copy link
Contributor

sid88in commented Feb 9, 2018

correct! ok sounds good :) Lets merge this PR once you revert back changes for dynamo and rest.

@sid88in sid88in merged commit 3593d7a into serverless:master Feb 9, 2018
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.

2 participants