nikunj chaudhari
06/24/2021, 3:02 AMnew ApolloServer({ schema, context: { prisma } });
since i am using ts but i couldn't get autocomplete or suggestion.Ryan
06/24/2021, 5:38 AMnikunj chaudhari
06/24/2021, 6:11 AMnikunj chaudhari
06/24/2021, 6:34 AMPrismaClient
, so that i can set in codegen.yml file where contextType: ___
Ryan
06/24/2021, 6:43 AMcodegen.yml
. Something like:
import { PrismaClient } from '@prisma/client'
type Context = {
prisma: PrismaClient
}
And then refer this type in Codegen.