Closed ZenSoftware closed 3 years ago
After manually removing the Client
from AffectedRowsOutput
, I am getting the following Typescript compilation error:
[0] Type 'Promise<BatchPayload>' is not assignable to type 'Promise<AffectedRowsOutput>'.
[0] ERROR in C:/a/Work/oss/apps/api/src/app/graphql/prisma/User/resolvers.ts(35,5):
[0] TS2322: Type '(_parent: {}, args: DeleteManyUserArgs, { prisma }: IContext) => Promise<BatchPayload>' is not assignable to type 'Resolver<{}, DeleteManyUserArgs, AffectedRowsOutput>'.
[0] Type 'Promise<BatchPayload>' is not assignable to type 'Promise<AffectedRowsOutput>'.
[0] ERROR in C:/a/Work/oss/apps/api/src/app/graphql/prisma/User/resolvers.ts(39,5):
[0] TS2322: Type '(_parent: {}, args: UpdateManyUserArgs, { prisma }: IContext) => Promise<BatchPayload>' is not assignable to type 'Resolver<{}, UpdateManyUserArgs, AffectedRowsOutput>'.
Hello @AhmedElywa!
Pal.js v2.12.0 seems to be producing the following:
resolversTypes.ts
Client.AffectedRowsOutput
should simply beAffectedRowsOutput
By the way, I gave you a shout-out in the README of my most recent project. Thanks again!
⛩ Zen ⛩ Nest + Prisma + Angular 🏮 Full Stack Starter Kit