title: neo4j: how to efficiently search value in list?
body: <p>I need to build a graph db with massive amount of nodes and relations. every node should hold a list of string values and I need to be able to query all the nodes connected to a starting node, that have a given value in their list. </p>
  
  <p>for example, I might have a node with a list of ["dog", "cat", "bird"], and I might need to query all nodes that have the value "dog" in their list.</p>
  
  <p>now my question is this - what would be more efficient solution for that list in neo4j?</p>
  
  <ol>
  <li>hold the values as an actual list, and search value inside that list during the query?
  or...</li>
  <li>instead using a list property, implement the list as separated properties and use HAS(n.property) to find all the nodes with a property?</li>
  <li>other solution?</li>
  </ol>
  
  <p>what would be the most efficient way (for lots of queries)?</p>
  
  <p>thanks!</p>