Moved from GitHub dgraph/4170
Posted by honglicheng:
kind: [string]
_:A <kind> "dog" .
_:A <kind> "animal" .
_:B <kind> "cat" .
_:B <kind> "animal" .
@groupby(kind){
count(uid)
}
i want to get :
{kind: "dog", count: 1}, {kind: "cat", count: 1}, {kind: "animal", count: 2}
but only get:
{kind: "dog", count: 1}, {kind: "cat", count: 1}
it seems that only the first item in the list can be grouped.