title: How to use cypher to create relationship between two nodes given their attributes in Neo4j
body: <p>I would like to do something like this</p>
  
  <pre><code>START n=node(*), m=node(*)  where has(n.userid) and has(m.userid) and n.userid='0' and m.userid='3'  create (n)-[FRIENDSHIP {status:2}]-&gt;(m) ;
  </code></pre>
  
  <p>However, Neo4j doesn't like the where clause. What is the best way to do this?</p>
  
  <p>Thanks a lot!</p>