paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
679 stars 55 forks source link

Update the aggregate resolver return type #321

Closed f8k8 closed 3 months ago

f8k8 commented 4 months ago

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