transaction PRISMA

const [posts, totalPosts] = await prisma.$transaction([
  prisma.post.findMany({ where: { title: { contains: 'prisma' } } }),  
  prisma.post.count(),
])
Wide-eyed Fox