I want to preform a reverse edge traversal on multiple uids in one mutation. How can I do this on for example: 0xa 0xd
{
devrel_tag(func: eq(tag_name,"devrel")) {
tag_name
~tagged {
0xa
0xd
}
}
}
I want to preform a reverse edge traversal on multiple uids in one mutation. How can I do this on for example: 0xa 0xd
{
devrel_tag(func: eq(tag_name,"devrel")) {
tag_name
~tagged {
0xa
0xd
}
}
}
I am guessing you want all nodes matching the root query that connect to those two UIDs:
{
devrel_tag(func: eq(tag_name,"devrel")) @cascade(~tagged) {
tag_name
~tagged @filter(uid(0xa,0xd)) {
fields #or whatever you want from here
}
}
}
the cascade will trim out what does not match the ~tagged to those two UIDs.
but, far more simply, flip it around:
{
devrel_tag(func: uid(0xa,0xd)) {
tagged @filter(eq(tag_name,"devrel")){
tag_name
}
}
}