Question
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.
Chris Tsongas
01/05/2022, 5:09 PMnikolasburk
“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
Chris Tsongas
01/06/2022, 6:49 PMChris Tsongas
01/06/2022, 6:51 PMChris Tsongas
01/06/2022, 6:51 PMnikolasburk
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? 😄