Replies: 1 comment
-
I personally just have a import { PrismaClient } from "@prisma/client";
/**
* The Prisma client instance.
*/
export const prismaClient = new PrismaClient(); Then simply import |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can someone help me to set up the prisma client globally, so I can call anywhere on my routes, like this
c.get("prisma").user.findMany()
Beta Was this translation helpful? Give feedback.
All reactions