paljs / prisma-tools

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

Incorrect typing on nullable typescript schema #278

Closed jbaum012 closed 10 months ago

jbaum012 commented 1 year ago

Nullable types such as birthDate in the pal schema typescript example are being compiled to:

  birthDate?: Date;

instead of the correct type of:

  birthDate: Date | null;

This causes typescript errors when retrieving models from prisma queries.