Can you get a full count of all rows along with a ...
# orm-help
a
Can you get a full count of all rows along with a slice of those rows yet or does that still require 2 queries?
n
Hey Aaron, if I understand you correctly, this would require two queries (one
prisma.model.count()
and one
prisma.model.findMany()
). If you want to get this info in a single query, you can use a raw SQL query in this case as a fallback 🙂
If you'd like to see this supported "natively" with Prisma Client, feel free to open a feature request for this 🙌