The following query(single query) achieves the same thing you want. Both this and the query you wrote does the same thing internally.
var (func: eq(description,“test content”)) {
DP as followed_by
}
DP_Breakdown (func :uid(DP)) @groupby(description){
count(uid)
}
DP_Breakdown2(func :uid(DP)) {
count(uid)
}
}
count() works on top level, everything within groupby block works on a group and not on top level. We changed it to have a consistent query language syntax.
Please let us know your feedback. @yebaros