Why is the map field on relations not exposed on D...
# orm-help
j
Why is the map field on relations not exposed on DMMF
plus one +1 2
i
IIRC there's a request to get that implemented but I ran into the same thing. When I was writing a generator integration my work around was to just pull in the entire
.prisma
file and search for it via regex.
Here's an example, fwiw: https://github.com/iiian/prisma-generator-entityframework/blob/master/packages/generator/src/helpers/rawSchema/getMappedFieldLine.ts I'm not in love with it, but it sure beats trying to build your own redundant AST
j
Cheers I will look at it. Right now I can’t upgrade to v3 until I have fixed this part of my code
👍 1