Title
c

Chris Tsongas

01/05/2022, 5:09 PM
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

nikolasburk

01/05/2022, 5:20 PM
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

Chris Tsongas

01/06/2022, 6:49 PM
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

nikolasburk

01/07/2022, 10:53 AM
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? 😄