title: Neo4j: Cypher query on property array
body: <p>I have a domain class which has a property by name "alias" which is an arraylist of strings like below:</p>
  
  <pre><code>private List&lt;String&gt; alias;
  </code></pre>
  
  <p>alias contains the following values: {"John Doe","Alex Smith","Greg Walsh"}</p>
  
  <p>I'd like to be able to make a query like: "I saw Smith today" using my repository query shown below and get the array value Output "Alex Smith":</p>
  
  <pre><code>@Query("MATCH (p:Person) WHERE {0} IN p.alias RETURN p")    
  Iterable&lt;Person&gt; findByAlias(String query);
  </code></pre>
  
  <p>I tried a bunch of different queries like the one shown above but this would only match if the input query matches the array value exactly.</p>
  
  <p>I want do a input query sub-string match with the array values.</p>
  
  <p>Eg: 
  Input Query: "I saw Smith today"
  Output: "Alex Smith"</p>