Filtering for child properties on Count Queries is also possible.
Example:
getUser(id: $userId) {
postsAggregate(filter: {
likes: {gt: 10}
}) {
count
}
}
This will give the count of posts which have likes greater than 10 for the User .