Hey Guys :wave: does anyone have experience implem...
# orm-help
l
Hey Guys 👋 does anyone have experience implementing prisma in an existing typedi/type-graphql/typeorm app? I've got the go-ahead from my company to start incrementally replacing typeorm, and I'm trying to figure out the best way to initialise the client - would doing it as a global object like this best the best way: https://www.prisma.io/docs/support/help-articles/nextjs-prisma-client-dev-practices? Or would it be better to create a typedi service and inject it everywhere the client needs to be used? Any advise would be greatly appreciated 😊
r
@Laurence Davies 👋 A single instance of
PrismaClient
is the recommended way. You can pass the client as long as the instance is the same.