Hey everyone 👋!
I’ve just released
Prisma-AppSync, a custom Generator for
prisma rainbow Prisma 2 that automatically generates a fully working ⚡ GraphQL CRUD API for AWS AppSync:
https://github.com/maoosi/prisma-appsync
From a Schema.prisma file, Prisma-AppSync will automatically generate:
• The GraphQL Schema for all CRUD operations, using AWS AppSync scalar types and directives. The generated schema offers real-time subscriptions and exposes most of the Prisma relation queries out-of-the-box.
• A TypeScript client library, ready to use within a Lambda resolver. Think of it as a wrapper around Prisma Client, capable to handle CRUD operations automatically, but also providing extensibility around the core API.
• Documentation with examples of how to consume the newly generated GraphQL API.
There are also some nice features to easily implement AppSync authorization modes, as well as fine-grained access control on the data. You can find more info in the docs:
https://prisma-appsync.vercel.app
The project is still highly experimental, so I don’t recommend using it in production just yet. That being said, feel free to give it a try, Star it on Github and send feedback to make it better!