I’m trying to build a POC for work and translate a...
# orm-help
d
I’m trying to build a POC for work and translate an already existing MongoDB document schema into my
schema.prisma
file. So far it seems relatively straight forward but I have one field that is using a Record utility type in typescript. It’s type is
Record<string, string | number | boolean | null | undefined>
is there a way to translate this into prisma’s schema file?
n
Hey Devan 👋 The closest I could find was the Unsupported type as mentioned here in reference. I am wondering if this is possible in mongoose or not, I’ll check.
d
It should be possible in mongoose because I’m pretty sure mongoose schema’s are just Typescript types. Not sure though as I’m a relatively new developer.