chukwuyem

context

Dec 12th, 2020
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { PrismaClient } from "@prisma/client";
  2.  
  3. const prisma = new PrismaClient({ log: ["query"] });
  4.  
  5. export interface Context {
  6.   prisma: PrismaClient;
  7. }
  8.  
  9. export function createContext(): Context {
  10.   return { prisma };
  11. }
  12.  
RAW Paste Data