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):
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 theModelCount
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):
typegraphql-prisma
version 0.27.1Additional Context Is this a known case?