I want to retrieve paths between nodes with constraint on node label. All nodes in the path should hold a specific label. "amps" is my label and My query:
MATCH p=(a:amps{word:"review"})-->()-->()-->(b:amps{word:"nothing"})
RETURN p
In the above query, I have two intermediate nodes. Now, I want these two nodes should also hold the label "amps".
How to make comparisons on labels?