title: Extract & Filter in Cypher
body: <p>I am trying to solve this problem but still it has problem.. Well, my query a bit complex because I use extract, shortpath and filter. When I try this code below, It returns filter requires where..</p>
  
  <pre><code>match (actor:Actor{name:"XXXX"}),(reeves:Actor{name:"YYYY"}),  
  p= shortestPath ((actor)-[*..20]-(reeves))
  where "Reeves, Keanu"=filter(n2 in nodes(p):n.name)
  return distinct extract(n in nodes(p)|n.name) as Names;
  </code></pre>
  
  <p>but as you see there is "where" keyword.</p>
  
  <p>and I tried like that</p>
  
  <pre><code>match (actor:Actor{name:"XXXX"}),(reeves:Actor{name:"YYYY"}),  
  p= shortestPath ((actor)-[*..20]-(reeves))
  WHERE NOT ALL (x IN  nodes(p)
         WHERE x.name&lt;&gt; "YYYY")
  return distinct extract(n in nodes(p)|n.name) as Names;
  </code></pre>
  
  <p>but this time, I still get "Reeves, Keanu" name.. I want to filter this name from my result..</p>
  
  <p>where am I doing a mistake?</p>