Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_count resolver breaks when moving from Prisma 4 to Prisma 5 #428

Open
KrishnaPravin opened this issue Dec 14, 2023 · 1 comment
Open

_count resolver breaks when moving from Prisma 4 to Prisma 5 #428

KrishnaPravin opened this issue Dec 14, 2023 · 1 comment
Labels
bug Something isn't working community Something initiated by the community

Comments

@KrishnaPravin
Copy link

Describe the Bug
I've upgraded Prisma version from 4.x to 5.x. The typescript check for _count resolver now fails with missing methods. There are required methods being generated for all the ModelCount classes.

Expected Behavior
Methods in the ModelCount class should be optional, so that the return type of the _count resolver does not have to have methods in it.

Logs
... is missing the following properties from type 'UserCount': getPosts,...

Environment (please complete the following information):

  • OS: macOS Ventura
  • Node 19
  • typegraphql-prisma version 0.27.1
  • Prisma version 5.7.0
  • TypeScript version 4.8.3

Additional Context
Is this a known case?

@MichalLytek MichalLytek added bug Something isn't working community Something initiated by the community labels Dec 14, 2023
@KrishnaPravin
Copy link
Author

@MichalLytek Thank you for tagging, can I expect a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community Something initiated by the community
Projects
None yet
Development

No branches or pull requests

2 participants