Hello Is there any way from prism itself to genera...
# orm-help
a
Hello Is there any way from prism itself to generate classes instead of type? Especially for the automapper I would need classes.
1
n
Hey 👋 Can you have a look at this community generator: prisma-class-generator?
a
Thanks for the hint. I have already tried that. It also writes during generation which classes it has created, but then the _gen directory in src/ does not exist.
y
I have help with this! I ran the generator & although it is nice, it is missing some functionality. I’m writing a new one inspired by it. In the mean time to run it make sure you set dryRun to false in the generator options
a
Now it worked. The classes are created. Thank you. The hint with the dryRun was crucial.
❤️ 1
n
Thanks for the hint Yudhvir 👍 I wasn’t aware of it either, This will help other users who might run into this later.
❤️ 1