I can see a few issues have been opened about this...
# orm-help
c
I can see a few issues have been opened about this but they all seem to end up referencing other issues/prs that have been closed/merged with no real answer as to how to do it
r
@Callum 👋 Here’s a request that you can add a 👍 to and follow. As for the answer, you need to use two queries at the moment like this:
Copy code
let [data, count] = await prisma.$transaction([
  prisma.user.findMany({ where: {} }),
  prisma.user.count()
])