Dmitri Pisarev
06/30/2022, 5:54 PMuserId String @map("user") @db.ObjectId
Now I’m trying to process this in my custom Prisma generator
plugin, and I need access to @map("user")
part.
But I don’t see it anywhere in the schema DMMF for this field:
{
name: 'userId',
kind: 'scalar',
isList: false,
isRequired: true,
isUnique: false,
isId: false,
isReadOnly: true,
type: 'String',
hasDefaultValue: false,
isGenerated: false,
isUpdatedAt: false
}
Is this a bug or a missing feature? I need this real bad (I’m building an automated $jsonSchema generator for Mongodb out of Prisma schema)
Basically I expected to see smth like dbName: 'user'
there.PinkiePie
06/30/2022, 8:48 PM_id
in node_modules/.prisma/client/index.js
gives me nothing as wellDmitri Pisarev
06/30/2022, 10:30 PMDmitri Pisarev
07/01/2022, 7:06 AM