Using the IMDB dataset example, suppose we have to find out all the persons connected to the movie “The Princess Bride”. The persons may be connected to the movie “The Princess Bride” node by different edges like the actor, director etc.
We can write the query in cypher like:
MATCH (p:Person)–>(m:movie { title: ‘The Princess Bride’ })
RETURN p.name
How we can write the same query in Dgraph?