Hi,
What I want to do is hard to explain
I am trying to sum the count of edges on a node in the middle of a graph but to have the aggregate for unique sets of end points.
Here is a query
{
g(func: type(Theme)){
theme.name
search{
querystring
result{
count(result.context)
document{
doc.id
}
}
}
}
}
That returns
{
"data": {
"g": [
{
"theme.name": "test theme",
"search": [
{
"querystring": "improving",
"result": [
{
"count(result.context)": 1,
"document": [
{
"doc.id": 2443317
}
]
},
What I want to do is add up the number count(result.context) for each theme and doc, so a theme has 3 searches that all point to the same doc I want the total result.context for that theme on that doc.
Hope that makes sense. Any ideas?