-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NestJS example needed #32
Comments
On nestjs we usually call PrismaService that is automatically injected globally on the framework. For me i didn't use this extension and just create a PrismaReadservice
So i just use it as prismaService for write and PrismaReadService. It works but is not like this extension.
Ofc will your responsibility in your code to not using read service for writing something, the code will not complain. |
It worked well for me, thank you! |
Here is a working example: |
Implemented an example for NestJS: https://github.com/dminglv/nestjs-prisma-postgres-cluster |
Prisma extensions are fairly new and there are not many examples of how to use them with the NestJS framework. I think this official extension would be a great place to have some documentation on how you could use this extension with NestJS.
The text was updated successfully, but these errors were encountered: