Skip to content

Instantly share code, notes, and snippets.

@campoy
Created July 30, 2019 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campoy/a1dfe716e40dd72a98b90449f9f53e6e to your computer and use it in GitHub Desktop.
Save campoy/a1dfe716e40dd72a98b90449f9f53e6e to your computer and use it in GitHub Desktop.
Cameo query
{
spielberg as var(func: allofterms(name@en, "steven spielberg")) {
uid
}
cameos(func: uid(spielberg)) @cascade @normalize {
director : name@en
director.film {
film : name@en
starring {
performance.actor @filter(uid(spielberg)) {
actor : name@en
}
performance.character {
character : name@en
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment