prisma-tools
prisma-tools copied to clipboard
Update the aggregate resolver return type
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