title: Can I create and relate two nodes with the same name but different ids in neo4j
body: <p>I have created two nodes in neo4j with the same name and label but with different ids:</p>
  
  <pre><code>CREATE (P:names {id:"1"})
  CREATE (P:names{id:"2"})
  </code></pre>
  
  <p>My question is if I can create a relationship between these two nodes like this:</p>
  
  <pre><code>MATCH (P:names),(P:names) 
  WHERE P.id = "1" AND P.id = "2" 
  CREATE (P)-[r:is_connected_with]-&gt;(P) RETURN r"
  </code></pre>
  
  <p>I try it but it doesn't work.
  Is it that I shouldn't create nodes with the same name or there is a workaround?</p>