neo4j - Hierarchical Cypher query with literal result -
My object structure looks like this: Containers are in the form of a root nodes, which contain subcontractors in each sub-container There are also sub-texts. To indicate in the cipher MATCH: (Container) - [: HAS_SUBCONTAINER] -> (Subject) - [: HAS_TASK] -> (task) - [: HAS_TASK] -> (subtasks) ) I want to write a query that gives the literal representation of Jason to this Hirachi: whether such a cipher Is there a way to do a question? I found a level hierarchy solution: but for a more complex case Can not tell any idea how to do it?
{name: 'maine', subclaimer: [ {Name: good luck}, work: [{name: 'parent1', child: [{name: 'child1'})}]}]}
MATCH (cnt: container {name: 'main'}) - [: HAS_SUBCONTAINER] - & gt; (Subcnt) returns {name: cnt.name, subcontent: extract (subsy is assembled (subcnt) | {name: subc.name})}
Comments
Post a Comment