Dgraph DQL Tour

Schema

Reverse edges Query

The reverse edge of anEdge is ~anEdge.

In this query we want to know who works for “CompanyABC” without having to add extra edges. So we use a reverse edge for the specific case. And then we use an alias “work_here” to differentiate the query result.

3.6 Reverse edges Query