5 ms·
The answer is muddier than what the other comments say. It depends on how you design your schema. It can support whatever you need it to support. Aggregations a
by ilikehurdles 8y ago
The answer is muddier than what the other comments say. It depends on how you design your schema. It can support whatever you need it to support. Aggregations aren't impossible, but they have to be designed into the schema. A very quick example query with aggregates _may_ look like this:
{
searchFriends(first_name: {startsWith: "John"} age: {gte: 30}) {
count
aggregate {
total_age: sum(field: age)
avg_age: average(field: age)
name_count: distinct(field: first_name)
}
nodes {
first_name
last_name
age
gender
location
}
}
}
But there are many different ways to model this.