I have multiple hierarchies, each hierarchy representing a Organization.
Just picking up 2 sample hierarchies...
Hierarchy 1:
Company{name:'ABC', CompanyId:1,} <-- Category <-- SubCategory <-- Service <-- Asset <-- Anomaly
Hierarchy 2:
Company{name:'XYZ', CompanyId:21,} <-- Category <-- Service <-- Asset <-- Anomaly
The Anomaly can further have children (dynamically added as detected, one being Instance). Our backend engine queries up the entire hierarchy.
Considering the dynamic nodes that could get appended to Anomaly, how do I generalize the cypher?
match srvhier=(:Company)<-[]-() returns multiple cyphers match srvhier=(:Company)<-[]-(:Instance) will not return any data unless I have a instance
thanks.