model Dummy {
id Int @id @default(autoincrement())
name String
}
Then the below query code could pass the typechecking, and runtime will throw error:
const dummies = await db.dummy.findMany({
include: {
abcdefg: true,
},
});
For this case it's better to not allow to use include at all, which is consistent with v2 behavior
Then the below query code could pass the typechecking, and runtime will throw error:
For this case it's better to not allow to use
includeat all, which is consistent with v2 behavior