title: Batch node relationship creation in cypher/neo4j
body: <p>What is the most efficient way to break down this CREATE cypher query?</p>
  
  <p>The end pattern is the following:</p>
  
  <pre><code>(newTerm:term)-[:HAS_META]-&gt;(metaNode:termMeta)
  </code></pre>
  
  <p>In this pattern this is a single newTerm node and about ~25 termMeta nodes. The HAS_META relationship will have a single property (languageCode) that will be different for each termMeta node.</p>
  
  <p>In the application, all of these nodes and relationships will be created at the same time. I'm trying to determine the best way to add them.</p>
  
  <p><strong>Is there anyway to add these without having to have perform individual query for each TermMeta node?</strong> </p>
  
  <p>I know you can add multiple instances of a node using the following query format:</p>
  
  <pre><code> "metaProps" : [ 
              {"languageCode" : "en", "name" : "1", "dateAdded": "someDate1"}, 
              {"languageCode" : "de", "name" : "2", "dateAdded": "someDate2"},
              {"languageCode" : "es", "name" : "3", "dateAdded": "someDate3"}, 
              {"languageCode" : "fr", "name" : "3", "dateAdded": "someDate4"}
          ]
  </code></pre>
  
  <p>But you can only do that for one type of node at a time and there (as far as I can tell) is no way to dynamically add the relationship properties that are needed.</p>
  
  <p>Any insight would be appreciated.</p>