Group by query when returns an incomplete Json structure causing an parse error due to an extra comma at the end of aggregation
Query -
{
var (func: eq(description,“test content”)) {
DP as followed_by
}
}
{
DP_Breakdown (func :uid(DP)) @groupby(description){
count()
count(uid)
}
}
Response -
{“extensions”: {“server_latency”:{“json”:“8ms”,“parsing”:“0s”,“processing”:“0s”,“total”:“8ms”}},“data”: {“DP_Breakdown”:[{“count”:0},]}}