📅  最后修改于: 2022-03-11 15:05:13.012000             🧑  作者: Mango
const [posts, totalPosts] = await prisma.$transaction([
prisma.post.findMany({ where: { title: { contains: 'prisma' } } }),
prisma.post.count(),
])