All reverse edges of a node


(Thorsten Ulbrich) #1

Is there a query to get all reverse edges to a node without knowing the names of the reverse edges?


(Michel Conrado) #2

You can use
expand(_reverse_)

https://docs.dgraph.io/query-language/#expand-predicates


(Thorsten Ulbrich) #3

Oh, excuse me, I must have overlooked that. Thanks for your help!