Join Slack
Powered by
I'm working on a library to generate fake data for...
# orm-help
k
Keenahn Jung
09/15/2021, 7:04 PM
I'm working on a library to generate fake data for tests through prisma. I'm taking inspiration from
factory-girl
if you're familiar. First roadblock, how do I get a union type of all Prisma models? I see
Prisma.ModelName
which is cool. But when I try to do
Copy code
type PrismaModel = Prisma[Prisma.ModelName]
3
Views
Open in Slack
Previous
Next