Querying for nodes connected to a particular node

Yep, you can fill up an issue for this. I think there’s none about it. But make sure.

For now, you can do like as I exemplified.

I believe expand func would be something to use as an analog to this feature. e.g.

{
  q(func: type(Person)) @filter(eq(name, "Devin Townsend")) @cascade {
    name
    expand(_edges_) @filter(eq(name, "The Princess Bride’")) 
  }
}

Similar to the recent deprecated expand(_forward_) and expand(_reverse_).

1 Like