Hi, from clean architecture point of view: I am u...
# orm-help
d
Hi, from clean architecture point of view: I am using Nest.js. What is the cleanest and most correct way to acces db from a service? Can I use prismaService using Dependency Injection or should I create a facade which encapsulates the ORM so I can replace that in the future with another one?
1
n
Hey Dominik 👋 This official example of using prisma with Nest.js should give you a reference on recommended way of accessing database: Prisma NestJS