@matthewmcneely Ohhh!! Var is a keyword! It has special meaning! Is there a list of other keywords somewhere?
Well this way returns the names and the count, as before, but unfortunately still does not return anything if the count is zero.
{
ITEMS as var(func: type(Stems)) @filter(le(Stems.length, 99))
q(func: uid(ITEMS)) @groupby(Stems.brand) {
count(uid)
}
}
returns (truncated):
[
{
"Stems.brand": "Syntace",
"count": 1
},
{
"Stems.brand": "Thomson",
"count": 1
},
{
"Stems.brand": "TruVativ",
"count": 1
},
{
"Stems.brand": "FSA",
"count": 2
}
]