关联查询 教程:Prisma 教程 更新时间:2026-12-02 阅读:159 include 预加载关联数据,where 支持嵌套条件。本节要点include 加载关联模型select 只取需要的字段where 支持 contains 等操作代码示例const users = await prisma.user.findMany({ include: { posts: true }, where: { name: { contains: "A" } } }) 上一篇CRUD 操作 下一篇返回列表