this is code for me
I can show head node and subset node in filter source_name
but I try to show head node and subset node in filter sympton_name. It fails to show all in filter
how to show filter head node and subset node
this is code for me
This feels like the same question here How to show all connection node in subset - do still need help? Not sure If I got what you wanna do.
Hi @Mickey248
Please make sure that the reverse directive is created in the schema as below for “source_with_sympton”.
<source_with_sympton>: [uid] @reverse .
Here is the query:
qsyn(func: eq(sympton_name, "sympton_2")){
sympton_handle
sympton_name
~source_with_sympton{
source_handle
source_name
}
}
This will show a result as below.
Response:
{
"data": {
"qsyn": [
{
"sympton_handle": "sympton_2",
"sympton_name": "sympton_2",
"~source_with_sympton": [
{
"source_handle": "source_2",
"source_name": "source_2"
}
]
}
]
}
}
Please try it and let us know.
thank you it is very useful