How to setup multiple Prisma clients in combination with `prismaSchemaFolder`
I'm trying to setup multiple Prisma clients (as I have 2 sperate databases) in combination with
prismaSchemaFolder
.
As I'm having 2 Prisma clients I need to define the ouput folder manually like:
1) Is that output fulder the recommended destination in this use case?
The generated files look good as far as I can see, however when importing this later like:
I get the following error:
Cannot find module '@prisma/db1/client'2 Replies
I changed the output path to
../../../node_modules/@prisma-db1/client
and then I was able to import it with import { PrismaClient as DB1PrismaClient } from '@prisma-db1/client';
Glad to hear that you were able to resolve it! 🙌