neo4j - Neo4jClient Get All Referenced Nodes -
in application have classes/nodes like:
-person
-activity
-company
can create relationships between:
- person , company
- company , activity
- activity , person - person , person
- company , company
so. possible, specific activity related person , company. company root. there no real hierarchy. it's more mesh structure.
(i know how create relationships etc. saw tutorials. :) )
now. want directly related relationships nodes of specific node. don't want fetch related data relationship type. want (when possible) 1 query, reads relationships , according nodes.
, second requirement: when have retrieved related relationships , nodes, want relationships (if exists) between these nodes!
cool solve 2 queries!
ideas?
thanks!
how like
start company = node(2) match company-[?:employs]-> person return company, person
see docs.neo4j.org/chunked/snapshot/cypher-query-lang.html details.
otherwise, can companies, persons etc in index, e.g.
start comp=node:companies(name='cocal cola'), person=node:persons(name='bob') ...
is looking ?
Comments
Post a Comment