Thanks. I have ran the tour. But I’ll try to elaborate, using an example.
This is my schema:
<name>: string .
<type>: string @index(hash) .
<ref>: int @index(int) .
<parent_of>: uid @reverse .
<relates>: uid @reverse .
<blocks>: uid @reverse .
I want to find all “Requirement” type vertices that have any kind of edge – “parent_of”, “relates”, “blocks”, or any reverse of those – towards “Tests” type vertices.
I’ve tried something like
{
q(func: eq(type, "Requirement")) {
expand(_all_) @filter(eq(type, "Tests")) {
name
}
}
}
But the expand(_all_)
and @filter
do not go along well…