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.
- Prisma schemas definitions and client
- GraphQL SDL schemas definitions
Subscription
queries implementation with Prisma module
Deploy as usual with serverless framework:
serverless deploy
Creating new users and receiving them in real time through subscription
query: