Given a Prisma client request such as: ``` prisma....
# prisma-client
s
Given a Prisma client request such as:
Copy code
prisma.user({ email: context.email }).following({ where: {
        lists_some: {
          name: 'Been',
          items_some: {
            venue: {
              id: venueId
            }
          }
        }
      }})
How would I go about getting a
count
back for the number of “followers”, rather than getting all the data and doing a
.length
?
n
s
But aggregations seem to only work on the “root” node… no?
👍 1
n
Might be that your use case is not supported, in that case please open a GitHub issue with a feature request 🙂
👍 1