Hello everyone, I have the following structure (schema):
uri: string .
domain: string .
created_at: datetime .
references: [uid] .
root: bool @index(bool) .
My task is to get one graph where all available nodes would be connected and come from one root node.
I am using the following query:
{
results(func: has(uri)) @recurse(depth: 1000, loop: true) {
uid
root
uri
references
}
}
With such a request, I get many graphs with their “references”, but I would like all of them to be connected into one.
What is the best query for this? And is this possible with the current structure?