You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @count documentation could be improved to show examples where the predicate is filtered inside the count, example: count(friend @filter(NOT eq(name, "Sarah")))
{
michael(func: eq(name, "Michael")) @recurse(depth:10){
name
age
owns_pet
friend~
friend @filter(NOT eq(name, "Sarah"))
count(friend @filter(NOT eq(name, "Sarah")))
}
}
What version of Dgraph is the target?
v21.03.1
Documentation.
The @count documentation could be improved to show examples where the predicate is filtered inside the count, example:
count(friend @filter(NOT eq(name, "Sarah")))
Discuss post which ultimately led to an understanding that
@filter
and@count
can be combined together: https://discuss.dgraph.io/t/how-to-filter-by-count/16915/6Discussion post where the above information was learned with Q&A: https://discuss.dgraph.io/t/does-order-in-a-dql-query-matter/18274
GitHub Ticket #461 also has references with additional confusing behavior of
@filter
with@recurse
Additional information.
No response
The text was updated successfully, but these errors were encountered: