MichalLytek / typegraphql-prisma

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema

Home Page:https://prisma.typegraphql.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible types between prisma and typegraphql-prisma

jorge-gutierrez opened this issue · comments

Describe the Bug
Hi, after upgrading to Prisma version 5 and generating the corresponding types, when I run the project, I get the following errors
errors:

To Reproduce
This is my resolver:
image

This is my service:
image

This is my schema:
image

Expected Behavior
The types should match and be compatible.

Logs
image
image
image

Environment (please complete the following information):

  • OS: Windows 10 22H2
  • Node: 18.12.1
  • typegraphql-prisma 0.27.0
  • Prisma version 5.0.0
  • TypeScript version 5.1.6
  • typegraphql-nest 0.6.0

Duplicate of #406 🔒