sendou.ink/graphql/context.ts
Kalle (Sendou) f7d2a2f395 ran prettier
2020-10-16 01:05:14 +03:00

10 lines
214 B
TypeScript

import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient({ log: ["query"] });
export interface Context {
prisma: PrismaClient;
}
export const createContext = (): Context => ({ prisma });