Just curious...what are all the "Unchecked" types ...
# orm-help

Question

Is there a way to turn off generation of unchecked types in Prisma Client?

Answer

No, there is currently no flag to turn off generation of unchecked types in Prisma Client. However, a feature request for a strict mode has been suggested on Github and can be tracked and evaluated by the Prisma Product and Engineering teams.

c
Just curious...what are all the "Unchecked" types that get generated by Prisma Client? I keep seeing them but I have no idea what that means....
n
Haha you’re not the first person to wonder Chris 😄 https://github.com/prisma/prisma/discussions/10121
“Unchecked” input types allow you to perform some operations that are often considered “dangerous”, like directly writing foreign keys. Prisma allows you to choose either a safe or an unchecked input type when doing operations like 
create
.
🙌 1
c
So I should not be directly writing foreign keys 😂 noted!
Is there a flag to turn off generation of unchecked types so I can see where I've been naughty?
Something like a strict mode?
n
Is there a flag to turn off generation of unchecked types so I can see where I’ve been naughty?
Something like a strict mode?
This doesn’t exist but I really like this idea, would you maybe mind opening a feature request for this so it can be tracked and evaluated by our Product and Engineering teams? 😄
712 Views