Schalk Neethling
07/08/2022, 8:18 PMconst prisma = new PrismaClient()
or should you instead have a util that returns the client if one does not already exist. I have many more questions like that 🙂Schalk Neethling
07/08/2022, 11:57 PMChris Tsongas
07/09/2022, 12:52 AMconst prisma = new PrismaClient()
in one prisma.js
or prisma.ts
file then import that in each file where it's needed, or depending on your framework import and pass it into context so it's available where it's needed.Schalk Neethling
07/09/2022, 12:13 PM