From c517ef30b373452f55d403bcaf71a6a407342d4c Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Wed, 10 May 2023 20:17:11 +1200 Subject: [PATCH] fix prisma utils example --- packages/plugin-prisma-utils/tests/examples/crud/generator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-prisma-utils/tests/examples/crud/generator.ts b/packages/plugin-prisma-utils/tests/examples/crud/generator.ts index fd0e895d8..08a91b4ea 100644 --- a/packages/plugin-prisma-utils/tests/examples/crud/generator.ts +++ b/packages/plugin-prisma-utils/tests/examples/crud/generator.ts @@ -252,8 +252,8 @@ export class PrismaCrudGenerator { )!; return { - create: this.getCreateInput(relatedModel.name as Name, [relatedFieldName.name]), - connect: this.getWhereUnique(relatedModel.name as Name), + create: this.getCreateInput(relationField.type as Name, [relatedFieldName.name]), + connect: this.getWhereUnique(relationField.type as Name), }; }, } as never) as InputObjectRef>;