paljs/prisma-tools

DeleteOneArgs where field should not be nullable

ZenSoftware opened this issue · 1 comments

Hi @AhmedElywa,

Pal.js SDL generation is producing arguments for DeleteOne...Args with a nullable where field for the TypeScript interfaces being generated. Prisma requires the where field for all single deletes. This is causing me some small issues when using TypeScript with "strictNullChecks": true. I thought you should know. Cheers 🥂

export interface DeleteOneUserArgs {
  where: UserWhereUniqueInput | null;
}

should be

export interface DeleteOneUserArgs {
  where: UserWhereUniqueInput;
}

Fixes in this pull request #309