title: Create relationship foreach elements in array in neo4j
body: <p>I have some problem with neo4j, cypher language...</p>
  
  <p>I have these types of node:
  Movie</p>
  
  <pre><code> {
     "overview":"An Amazon princess comes to the world of Man to become 
     the greatest of the female superheroes.",
     "actors":[
       "Gal Gadot",
       "Chris Pine",
       "Connie Nielsen",
       "Robin Wright",
       "Danny Huston"],
    "original_title":"Wonder Woman",
    "runtime":141,
    "title":"Wonder Woman"
  </code></pre>
  
  <p>}</p>
  
  <p>Actor</p>
  
  <pre><code>{
   "birthday":"1985-04-30",
   "place_of_birth":"Rosh Ha'ayin, Israel",
   "popularity":54.444332,
   "name":"Gal Gadot"
  },
  </code></pre>
  
  <p>I would create a relationship "ACTED_IN" between Actor and Movie, and I would do this for each actor in the array "actors".</p>
  
  <p>This is the command:</p>
  
  <pre><code>MATCH (f:Movie), (a:Actors)
  FOREACH (n IN f.actors | CREATE (f)-[:ACTED_IN]-&gt;(a))   
  </code></pre>
  
  <p>but I don't know where to put the "WHERE CONDITION"... each elements in actors array = Actors.name.</p>
  
  <p>Thank you for the help.</p>