How to dedup nodes at N-Hop level?

To “flat” the data use Normalize https://dgraph.io/docs/query-language/normalize-directive/#sidebar

Bonus: Cypher "translated" to GraphQL+-