wmfairuz
4/16/2014 - 3:17 AM

Get outgoing/ingoing relationship for a class

Get outgoing/ingoing relationship for a class

START o = node(24086),
c = node:classes(name = "WireContainer")
MATCH o-[:RELATED_TO_SPECIAL]->wc-[:INSTANCE_OF]->c
WHERE wc.headend = "D001" AND wc.primer = "9"
RETURN id(o), o.name, id(wc), wc.name, wc
START wc = node:classes(name = "WireContainer")
MATCH wc-[r]->y
RETURN type(r), y.name