-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
kind/featureSomething completely new we should consider.Something completely new we should consider.
Milestone
Description
Add a directive to remove self edges from results. For example, in the following query, to remove actors as co actors of themselves.
{
coactors(func:allofterms(name, "Jane Campion")) @cascade @normalize {
JC_films as director.film { # JC_films = all Jane Campion's films
starting_movie: name
starring {
JC_actors as performance.actor { # JC_actors = all actors in all JC films
actor : name
actor.film {
performance.film @filter(not var(JC_films)) { # find a different film
film_together : name
starring {
# find a coactor who has been in some JC film
performance.actor @filter(var(JC_actors)) {
coactor_name: name
}
}
}
}
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
kind/featureSomething completely new we should consider.Something completely new we should consider.