Aladin
07/07/2022, 2:19 AMDecimal
when Prisma supports Decimal again for MongoDB. So we built a good middleware (that's slowing down our queries currently), it converts from Number to Decimal when writing to DB and vice versa when fetching from DB.
2. We also developed a tool to convert Decimal
fields from the schema to Float
just before the generate
phase of prisma. This way, we keep our original schemas intact until Prisma releases Decimal support for MongoDB.
3. We use lots of internally developed modules and they're published to NPM. And because we're planning to open source some of our tech, these modules needed to be agnostic to Flux, so they had to embed their own Prisma schema. We built an internal module @driveflux/prisma-schema-merger
that's not open sourced yet. It combines schemas from different modules into one main schema file and allows adding/deleting/updating fields from models, types and enums and publishes one main prisma file.
So far, everything is great and we can't be more grateful to the prisma community for this awesome piece of work.Albin Groen
07/10/2022, 8:14 AMandrewicarlson
07/13/2022, 2:25 AMZB
07/15/2022, 10:39 AMFarhan Haider
07/16/2022, 9:28 PMIddan Aaronsohn
07/20/2022, 7:49 AMVasek Mlejnsky
07/29/2022, 4:05 PMFoysal
07/31/2022, 5:27 PMyujonglee
08/07/2022, 6:14 AMletsdmmf
a few days ago.
https://github.com/yujong-lee/letsdmmf
Anyone interested in building Prisma Generator might find it useful. If you are new to DMMF, you can run letsdmmf example
to learn about DMMF with a minimal schema of various types.
You can only install it via Homebrew for now.
Any questions/contributions are welcome. Thank you.James Fox
08/17/2022, 7:47 AMVasek Mlejnsky
08/21/2022, 8:21 PMPasindu Dilshan
08/26/2022, 5:17 AMBrendan Allan
09/01/2022, 11:10 AMDavid Hancu
09/03/2022, 8:18 PMEliya Cohen
09/10/2022, 7:04 PMJarupong
09/14/2022, 1:19 PMИван Селютин
09/15/2022, 1:11 AMRohan Rajpal
09/15/2022, 12:47 PMEric Simon
09/26/2022, 7:56 PMVincent
09/27/2022, 8:47 AMSylvain (seel-vahn)
09/28/2022, 7:41 AMPasindu Dilshan
09/28/2022, 9:18 AMDavid Hancu
10/01/2022, 8:37 AMpg_trgm
queries using a middleware and an easier way of using the configuration file!
The update is scheduled later this month, after the pg_trgm
implementation is completed. Here's a sneak peek for the code-generated schemas:
SchemaCreator
.model("User")
.column("id", "Int", Constraints.Column.ID(), Constraints.Column.DEFAULT(Functions.AUTOINCREMENT()))
.column("name", "String")
.column("posts", "Post[]")
.model("Post")
.column("id", "Int", Constraints.Column.ID(), Constraints.Column.DEFAULT(Functions.AUTOINCREMENT()))
.column("title", "String", Constraints.Column.UNIQUE())
.column("userId", "Int")
.column("user", "User", Constraints.Column.RELATION({fields: ["userId"], references: ["id"]}))
.column("updatedAt", "DateTime", Constraints.Column.UPDATEDAT())
.column("createdAt", "DateTime", Constraints.Column.DEFAULT(Functions.NOW()))
.build();
David Hancu
10/04/2022, 8:22 PMpg_trgm
support using middlewares.
• Migrated configuration to .mjs
instead of .json
to make it easier to implement code-generated schemas.
Link: https://www.npmjs.com/package/prisma-utilQuentin Laffont
10/06/2022, 12:41 PMJarupong
10/10/2022, 1:13 PMHarshit Jain
10/17/2022, 11:50 AMAndre Ricardo
10/21/2022, 8:47 AMRinu Jadav
10/24/2022, 4:05 AMSylvain (seel-vahn)
10/27/2022, 12:48 AMPrisma-AppSync is a Prisma Generator, that instantly converts your Schema into a full-blown GraphQL API for AWS AppSync.https://prisma-appsync.vercel.app 🤯 Major codebase rewrite (better DX, simplified API, …) 📺 New installer CLI
npx create-prisma-appsync-app
⚡ New local AppSync Server (local db, auto-reload, TS support, GraphQL IDE)
📓 New documentation website
😛risma: Support Prisma 4.5+
💪 Tons of improvements
Please try it out!
https://github.com/maoosi/prisma-appsync