Hi,
currently i am working on an Uni Project, where we have to measure the response time from different Querys on different graph databases. My group chose Dgraph.
Since i am struggling with a certain query and can’t get it to run without errors, i thought i ask more experienced people in this forum.
The Query is the following:
{
var(func: has(f_relationships)){
f_relationships @facets(d as date){
dateInt as math(since(d))
}
}
data(func: uid(dateVar)){
avgDate : avg(val(dateInt))
}
}
The facet date has the type datetime and the goal is to create a query which computes the average of every date on every edge.
While testing i always come back to the same error.
Repeated id with non int/float value for facet var encountered.
The Documentation of Dgraph on aggregation with facets seems to use integer in their example and since my facet has the type datetime it seems to have problems with it, but i could be interpreting this error completly wrong.
I hope there is someone, who can help me .