title: problem with Neo4j query, calling foreach for the previous match results
body: <p>I have this class (node):</p>
  <pre><code>case class User(name: String, lastName: String, age: Int, city: String)
  </code></pre>
  <p>I'm trying to add relationships for an existing node (name=Alice) with this query:</p>
  <pre><code>MATCH (user:User {name: $name}),(friend:User) WHERE friend.name IN [$fNames] WITH user,friend CREATE (user)-[f:FRIEND]-&gt;(friend) RETURN f
  </code></pre>
  <p>I'm passing in fNames = List(Bob, David), and all nodes exist in db (for Alice, Bob and David).
  This query returns no results, and that one neither:</p>
  <pre><code>MATCH (user:User {name: $name})-[f:FRIEND]-&gt;(friend:User) RETURN friend
  </code></pre>
  <p>I tried using FOREACH in the first query but was getting errors (something about Nodes vs Paths).
  My goal is to add FRIEND relationships (edges) between Alice and all User nodes (vertices) with &quot;name&quot; field in fNames list.
  How can I do that using a single cipher query?
  Thanks,</p>
  <p>Joe</p>