The resolver's return type doesn't quite match the return type from Prisma. Prisma's fields are optional (e.g. _count?), but the resolver's type doesn't have the fields as optional, which causes an error when compiling. This PR changes the aggregate resolver return type to match Prisma's.
The resolver's return type doesn't quite match the return type from Prisma. Prisma's fields are optional (e.g. _count?), but the resolver's type doesn't have the fields as optional, which causes an error when compiling. This PR changes the aggregate resolver return type to match Prisma's.
Fixes #323