import { PrismaClient } from '@prisma/client' ; import { PubSub } from 'apollo-server' ; export interface Context { prisma : PrismaClient ; pubsub : PubSub ; } const prisma = new PrismaClient ( ) ; const pubsub = new PubSub ( ) ; export const context = { prisma : prisma , pubsub : pubsub , } ;