title: How to create relationship between elements in collection
body: <p>There are set of nodes <code>User</code> and query returns a collection (e.g. two nodes <code>Mary</code> and <code>Mario</code> ).</p>
  
  <pre><code>match (u:User)
  where u.name =~ 'M.*'
  return u
  </code></pre>
  
  <p>How do I go about creating a relationship among themselves.  I don't know if this is possible. I am not doing anything particular, it's just a learning exercise.</p>
  
  <pre><code>match (u:User)
  where u.name =~ 'M.*'
  foreach ( n in nodes(u) | create (n)-[:knows]-&gt; (n+1)) #=&gt; I am stuck here
  </code></pre>