title: how to write Spark data frame to Neo4j database
body: <p>I'd like to build this workflow:</p>
  
  <ul>
  <li>preprocess some data with Spark, ending with a data frame </li>
  <li>write such dataframe to Neo4j as a set of nodes</li>
  </ul>
  
  <p>My idea is really basic:  write each row in the df as a node, where each column value represents the value of the node's attribute</p>
  
  <p>I have seen many articles, including <a href="https://github.com/neo4j-contrib/neo4j-spark-connector" rel="nofollow">neo4j-spark-connector</a> and <a href="https://neo4j.com/blog/neo4j-3-0-apache-spark-connector/" rel="nofollow">Introducing the Neo4j 3.0 Apache Spark Connector</a> but they all focus on importing into Spark data from a Neo4j db... so far, I wasn't able to find a clear example of writing a Spark data frame to a Neo4j database. </p>
  
  <p>Any pointer to documentation or very basic examples are much appreciated.</p>