`Argument of type '"{ bar }"' is not assignable to...
# orm-help
d
Argument of type '"{ bar }"' is not assignable to parameter of type '{ [key: string]: any; } | undefined'.
l
On my setup I declared the context manually to include the prisma typings, so we have
Copy code
import { Prisma } from './generated/prisma'
export interface Context {
  db: Prisma
  request: any
  response: Response
}
and then just specify
ctx: Context
in your function parameters, should do the trick