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

Add documentation to use with apollo-server-lambda #26

Open
aryaminus opened this issue Oct 10, 2019 · 2 comments
Open

Add documentation to use with apollo-server-lambda #26

aryaminus opened this issue Oct 10, 2019 · 2 comments

Comments

@aryaminus
Copy link
Contributor

The number of audience who have Serverless Subscriptions issue are certain to use apollo-server-lambda. It would be better if you build an example using it or atleast some guide

@gobengo
Copy link
Contributor

gobengo commented Oct 10, 2019

I'm not sure if it's possible, tbh.

The goal here is to support subscriptions. apollo-server-lambda's ApolloServer doesn't (I believe) even try to.

The approach that's worked for us is just to use apollo-server-express, then use aws-serverless-epxress to translate lambda requests to be able to call the express server.

This has the benefit of being able to develop the app locally too as a normal http server, or run the same apollo app on non-lambda deployment targets.

What benefit does apollo-server-lambda provide over this method?

@aryaminus
Copy link
Contributor Author

Well, maybe for someone deploying to netlify using netlify-lambda, or something similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants