mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +03:00
graph-store: fixed nested node scry
This commit is contained in:
parent
a2484f9538
commit
f5be1389ef
@ -341,21 +341,23 @@
|
||||
=/ =ship (slav %p i.t.t.path)
|
||||
=/ =term i.t.t.t.path
|
||||
=/ =index:store (turn t.t.t.t.path |=(=cord (slav %ud cord)))
|
||||
=/ graph=(unit graph:store) (~(get by graphs) [ship term])
|
||||
?~ graph ~
|
||||
=/ node=(unit node:store) [~ *node:store]
|
||||
=/ parent-graph=(unit graph:store) (~(get by graphs) [ship term])
|
||||
?~ parent-graph ~
|
||||
=/ node=(unit node:store) ~
|
||||
=/ =graph:store u.parent-graph
|
||||
|-
|
||||
?~ index
|
||||
?~ node ~
|
||||
``noun+!>(u.node)
|
||||
?~ t.index
|
||||
=. node (get:orm u.graph i.index)
|
||||
=. node (get:orm graph i.index)
|
||||
?~ node ~
|
||||
``noun+!>(u.node)
|
||||
=. node (get:orm graph i.index)
|
||||
?~ node ~
|
||||
?- -.children.u.node
|
||||
%empty ~
|
||||
%graph $(node (get:orm p.children.u.node i.index))
|
||||
%graph $(graph p.children.u.node, index t.index)
|
||||
==
|
||||
==
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user