This example shows how to implement a GraphQL server with TypeGraphQL and the Serverless framework based on Prisma Client, apollo-server-lambda.
-
Node version >= 12 required
-
Rename
.env.example
to.env
and replace the necessary values -
Run
yarn
(recommended) ornpm install
- Run the command
yarn dev
to run the app locally on http://localhost:3000/dev/graphql which will open the GraphQL Playground
- Run the command
yarn deploy --profile profile_name --region YOUR_AWS_REGION
to deploy the app