Can someone give me a quick rundown (or just a poi...
# orm-help
m
Can someone give me a quick rundown (or just a point to the docs) of where
XUncheckedWithoutYInput
is coming from, where X and Y are models, Y hasMany X? What does "Unchecked" mean here? I see there's a XOR here:
XOR<Enumberable<XWithoutYInput>, Enumerable<XUncheckedWithoutYInput>>
Is the "Unchecked" version some sort of default, because when I explore the client file, it lands me on the Unchecked flavor. I would assume maybe unchecked doesn't do type-checking, but it seems like the type definitions are exactly the same.
1
a
Hey Michael! “Unchecked” input types allow you to perform some operations that are Prisma considers “dangerous”, like directly writing foreign keys. Prisma allows you to choose either a “safe” or an unchecked input type when doing operations like
create
.
m
YES! I get it. Thanks Austin. Loving Prisma more and more every LOC
🙏 1