-
Notifications
You must be signed in to change notification settings - Fork 364
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
Serverless.yml for graphql-yoga with prisma #339
Comments
Hey @abelovic thanks for looking into it. If you can create a PR with your implementation I am sure Graphcool folks can help you debug. -Sid |
@abelovic Did you find something ? Could help me a lot :-) |
@Kisepro - yes I have it working :) You will need to use webpack and you can use this as a starting point: https://github.com/jgeschwendt/serverless-prisma Here is what I use: Note: I am still using Prisma 1.7.4 & Prisma-binding 1.5.19 due to windows issues: prisma/prisma1#2494 serverless.yml
.graphqlconfig.yml
webpack.config.js
graphql.js
|
Hi @abelovic, how are you handling websocket connections using the above project configuration? |
This is probably an easy question but I have been struggling to get this to work :(
Using this example:
https://github.com/graphcool/graphql-yoga/tree/master/examples/lambda
except trying to modify it so that it uses this boilerplate (or any of them really):
https://github.com/graphql-boilerplates/node-graphql-server/tree/master/advanced
I tried to modify the "function/(graphql & playground)/handler" in the serverless.yml file to point to src/index.js file and export the both the server/playground (like in the graphql-yoga example) but that didn't work when deploying to AWS like I expected it to. Is that the right approach and I'm just making a mistake somewhere along the way?
The text was updated successfully, but these errors were encountered: