Hello,
I only want to get/return paths between City (red) nodes, that go through Cable (blue) nodes and have property state:"working" Image here is only an example; path lengths between cities can be longer.
I mean something like this (not working):
MATCH p=(c1:City)-[*]-(c2:City) WHERE (x in nodes(p) WHERE x.state="working") RETURN p
This gives almost what I want:
match p=(c1:City {name:"Oslo"})-[*]-(c2:City {name:"Copenhagen"}) with nodes(p) as ns unwind [x in ns where x.state IS NOT NULL and x.state="working"] as ss return distinct(ss)
but I would like to get whole paths between to cities (with relationships).