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