paljs / prisma-tools

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

Make findMany return a non-nullable array #312

Closed f8k8 closed 1 year ago

f8k8 commented 1 year ago

Prisma's findMany doesn't return an optional array, so the generated GraphQL type shouldn't be nullable.

AhmedElywa commented 1 year ago

Can you update the graphql-modules genertar also https://github.com/paljs/prisma-tools/blob/main/packages/generator/src/graphql-modules/CreateQueriesAndMutations.ts