Closed Lce-Lemon closed 5 days ago
@nodece @Shivansh-yadav13
@Lce-Lemon Prisma is an ORM, what do you mean by the "generated directory for Prisma"? Can you provide a full example code?
Prisma is an ORM, what do you mean by the "generated directory for Prisma"? Can you provide a full example code?
Please look here
Then I think we can provide an optional argument in this adapter to allow users to specify the directory for the Prisma Client
@Lce-Lemon Thank you for your feedback! Adapting to a custom generator output path is quite challenging for us. We would suggest modifying the source code of the casbin-prisma-adapter manually to import the relevant Prisma generator classes from your custom output path. https://github.com/search?q=repo%3Anode-casbin/prisma-adapter%20%27%40prisma/client%27&type=code
Closed as resolved
When I modify the generated directory for Prisma, the adapter doesn't work properly.