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.

Endpoint: /query Dgraph:  http://localhost:8080  
Response