enhancePrisma(PrismaClient)
enhancePrisma
is a little wrapper that makes integration with Blitz apps
a bit nicer.
db.$reset() => Promise<void>
function for use in tests like
this:beforeEach(async () => {
await db.$reset()
})
import {enhancePrisma} from "blitz"
import {PrismaClient} from "@prisma/client"
const EnhancedPrisma = enhancePrisma(PrismaClient)
export * from "@prisma/client"
export default new EnhancedPrisma()