Open MTGPROD opened 1 year ago
Hey @albingroen 👋🏾
I was taking a stab at this and I've come up with "Easy fixes" that would currently distinguish MongoDB schema from the SQL databases:
@id @default(auto()) @map("_id") @db.ObjectId
to the id
attribute of a MongoDB model by default.id
attribute should always be aString
.@relation(references: [id])
I can try implementing this as a placeholder before support for database native type attributes is added to Prisma Builder.
WDYT?
@sonylomo I am hesitant to change the json>prisma<json engine that I currently have since it's very hacky. Some people on your team have promised a first-party utility for precisely that, so I will be holding off and then rewrite the backend once that's available :)
Hi, I love the idea behind your tool, but... It didn't supports mongodb.