This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 365
Serverless.yml for graphql-yoga with prisma #339
Labels
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? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: