All right so, I have this schema:
mutation {
schema {
graph: string @index(exact,term) .
dummy_param: string @index(exact,term) .
edge: uid @count .
name: string @index(exact,term) .
}
}
I create two root nodes by running:
mutation {
set {
_:root <graph> "graph1" .
_:root <dummy_param> "graph1" .
_:root <name> "root" .
}
}
And then:
mutation {
set {
_:root <graph> "graph2" .
_:root <dummy_param> "graph2" .
_:root <name> "root" .
}
}
Then I query:
{
recurse(func:eq(name, "root")){
name
graph
edge
}
}
And I get what I show as “first” in the attached image.
Then I add a node to “graph1”:
mutation {
set {
<0x7538> <edge> _:node1 .
_:node1 <name> "node1" .
_:node1 <graph> "graph1" .
}
}
But if I query like this again:
{
recurse(func:eq(name, "root")){
name
graph
edge
}
}
I get what I put as “second” in the attached image.
Shouldn’t the result be something more like what I put as “third” in the attached image?: