title: Remove duplicates from Node array properties
body: <p>I have a property <code>A</code> on my nodes that holds an array of string values:</p>
  
  <p><code>n.A=["ABC","XYZ","123","ABC"]</code></p>
  
  <p>During merges I frequently will write code similar to <code>n.A = n.A + "New Value"</code>.  The problem I've been running into is that I end up with duplicate values in my arrays; not insurmountable but I'd like to avoid it.</p>
  
  <ul>
  <li>How can I write a cypher query that will remove all duplicate values from the array <code>A</code>? Some duplicates have already been inserted at this point, and I'd like to clean them up.</li>
  <li>When adding new values to existing arrays how can I make sure I only save a copy of the array with distinct values? (may end up being the exact same logic as used to solve my first question)</li>
  </ul>