Hey Yassin 👋 this is a great initiative and I'd love to see such a guide that makes it easier for the community to build their own generators!!
However, there's a major caveat to this. The DMMF is an undocumented API that's not considered part of the official API surface and might break unexpectedly with any release, so it's very intentionally not documented in our own resources (somewhat related context also in this issue: #10725).
I would still love to see such a guide, do you maybe have a personal blog where you could publish it? Otherwise, platforms like Hashnode or dev.to are great to publish blog posts without the need of setting up your own blog. While we are not able to include such a guide in our own resources, I do think we can link to it from the Community generators-section in our docs!
» npm install @prisma/generator-helper
Can I use prisma types at backend in client?
How the F**** does anyone use Prisma in production?
My company has been using Prisma in production for just over 2 years. We've definitely ran into pain points such as the lack of support for long-running transactions, but it provides an intuitive type-safe API for data access that makes iteration fast and easy. Plus, the tooling around GraphQL (namely Nexus) integrates really well in our stack. For 90% of our use cases Prisma does the job very well; for the other 10% we use a library called Slonik to roll our own SQL queries. So to answer the question in the title of this post, we use Prisma where it's convenient to do so, and then raw SQL with Slonik when we need more advanced functionality.
More on reddit.com