Dgraph for SQL Pros workshop on 6/10 - Free Signup
To optimize your experience, the interactive tutorial is only available on desktop.

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.