The function has(edge_name) returns nodes that have an outgoing edge of the given name.
has(edge_name)
An interactive tutorial with real queries and real results, designed to run on Chrome on your machine.
Modules
Here you'll learn the basics of how to query graph data from Dgraph and how to use and interpret the results.
Module Breakdown
{
have_friends(func: has(friend)) {
name@.
age
number_of_friends : count(friend)
}
2.12 Has