How to filter by count

I found it, put the filter conditions into count.

{
  r as var(func: type(Attribute))  {
    v as count(last_analysis_results @filter(NOT eq(result, "")))
  }
  find(func: uid(r)) @filter(ge(val(v), 58)) {
	uid
  }
}
1 Like