DregondRahl / graphql-lambda-prisma-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphql Subscriptions on AWS Lambda (with Prisma)

This is a graphql-lambda module usage example that shows how to create a GraphQL endpoint with Subscriptions that stores new users using prisma ORM and shows the newly created users in real-time through a GraphQL subscription query.

This example includes:

  • Prisma schemas definitions and client
  • GraphQL SDL schemas definitions
  • Subscription queries implementation with Prisma module

How to

Deploy as usual with serverless framework:

serverless deploy

Playground Screenshots

Creating new users and receiving them in real time through subscription query:

Screenshot 2021-04-05 at 2 39 52 AM

Screenshot 2021-04-05 at 2 39 55 AM

About


Languages

Language:TypeScript 86.0%Language:JavaScript 14.0%