文档中的示例如下所示:
const getUser = await prisma.user.findUnique({
where: {
id: 1,
},
include: {
posts: {
select: {
title: true,
},
},
},
})
Run Code Online (Sandbox Code Playgroud)
但是当我想读取该属性时,getUser.posts出现以下错误:
TS2339: Property 'posts' does not exist on type 'User'.
Run Code Online (Sandbox Code Playgroud)
在哪里可以找到包含选项的正确类型定义?