Skip to content

Commit

Permalink
fix prisma utils example
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed May 10, 2023
1 parent dbdb6f0 commit c517ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-prisma-utils/tests/examples/crud/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
)!;

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<NonNullable<Model['Create'][Relation & keyof Model['Update']]>>;
Expand Down

1 comment on commit c517ef3

@vercel
Copy link

@vercel vercel bot commented on c517ef3 May 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.