title: AUTH_DISABLED warning when trying to MERGE inside apoc.when()
body: <p>Neo4j 3.4. I am trying to insert a new node <code>(a)</code> into a time line between <code>(t)</code> and <code>(n)</code>. Each time node has a timestamp. My problem is that node <code>(t)</code> sometimes has the same timestamp as my new node <code>(a)</code>. I am using <code>apoc.when</code> to determine if it is not the same in order to make the insert, else do nothing.</p>
  
  <pre><code>MATCH (t:time)-[r:next*1]-&gt;(n:time) WHERE n.time &gt; 1528601855959 AND t.time &lt;= 1528601855959 
  WITH n,t,r
  CALL apoc.when(
      (t.time &lt;&gt; 1528601855959),
      'UNWIND r as rd DELETE rd WITH t,n MERGE (t)-[:next]-&gt;(a:time{time:1528601855959, src:"time"})-[:next]-&gt;(n)','', {t:t, r:r, n:n}) YIELD value as rr
  RETURN t,n
  </code></pre>
  
  <p>I have two problems I can't crack:
  First is the error message:</p>
  
  <blockquote>
    <p>Neo.ClientError.Security.Forbidden: Write operations are not allowed
    for AUTH_DISABLED with FULL restricted to READ.</p>
  </blockquote>
  
  <p>I've tried to find this setting in the config files with no luck. Is there something wrong with the code or can i just change a config setting?</p>
  
  <p>The second problem is basic and may work after the AUTH issue is fixed - how can I return <code>(a)</code> when/if it's created? - i.e. <code>RETURN a,t,n</code>.</p>
  
  <p><a href="https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_when_procedures" rel="nofollow noreferrer">https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_when_procedures</a></p>
  
  <p>Thanks!</p>