Skip to content

Instantly share code, notes, and snippets.

@wmfairuz
Created April 16, 2014 03:17
Show Gist options
  • Save wmfairuz/10802411 to your computer and use it in GitHub Desktop.
Save wmfairuz/10802411 to your computer and use it in GitHub Desktop.
Get outgoing/ingoing relationship for a class
START wc = node:classes(name = "WireContainer")
MATCH wc-[r]->y
RETURN type(r), y.name
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment