{"id":64064,"date":"2017-02-23T16:00:12","date_gmt":"2017-02-23T14:00:12","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=64064"},"modified":"2017-02-23T13:03:07","modified_gmt":"2017-02-23T11:03:07","slug":"neo4j-null-values-even-work","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html","title":{"rendered":"Neo4j: How do null values even work?"},"content":{"rendered":"<p>Every now and then I find myself wanting to import a CSV file into <a href=\"https:\/\/neo4j.com\/developer\/\">Neo4j<\/a> and I always get confused with how to handle the various null values that can lurk within.<\/p>\n<p>Let\u2019s start with an example that doesn\u2019t have a CSV file in sight. Consider the following list and my attempt to only return null values:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value = null\r\nRETURN value\r\n\u00a0\r\n(no changes, no records)<\/pre>\n<p>WITH [null, &#8220;null&#8221;, &#8220;&#8221;, &#8220;Mark&#8221;] AS values UNWIND values AS value WITH value WHERE value = null RETURN value (no changes, no records)<\/p>\n<p>Hmm that\u2019s weird. I\u2019d have expected that at least keep the first value in the collection. What about if we do the inverse?<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value &lt;&gt; null\r\nRETURN value\r\n\u00a0\r\n(no changes, no records)<\/pre>\n<p>WITH [null, &#8220;null&#8221;, &#8220;&#8221;, &#8220;Mark&#8221;] AS values UNWIND values AS value WITH value WHERE value &lt;&gt; null RETURN value (no changes, no records)<\/p>\n<p>Still nothing! Let\u2019s try returning the output of our comparisons rather than filtering rows:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nRETURN value = null AS outcome\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2564\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\"outcome\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502null   \u2502null     \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"null\" \u2502null     \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"\"     \u2502null     \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"Mark\" \u2502null     \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>Ok so that isn\u2019t what we expected. Everything has an \u2018outcome\u2019 of \u2018null\u2019! What about if we want to check whether the value is the string \u201cMark\u201d?<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nRETURN value = \"Mark\" AS outcome\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2564\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\"outcome\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502null   \u2502null     \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"null\" \u2502false    \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"\"     \u2502false    \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"Mark\" \u2502true     \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>From executing this query we learn that if one side of a comparison is null then the return value is always going to be null.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>So how do we exclude a row if it\u2019s null?<\/p>\n<p>It turns out we have to use the \u2018is\u2019 keyword rather than using the equality operator. Let\u2019s see what that looks like:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value is null\r\nRETURN value\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502null   \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>And the positive case:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value is not null\r\nRETURN value\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502\"null\" \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"\"     \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"Mark\" \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>What if we want to get rid of empty strings?<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value &lt;&gt; \"\"\r\nRETURN value\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502\"null\" \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"Mark\" \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>Interestingly that also gets rid of the null value which I hadn\u2019t expected. But if we look for values matching the empty string:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nWITH value WHERE value = \"\"\r\nRETURN value\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502\"\"     \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>It\u2019s not there either! Hmm what\u2019s going on here:<\/p>\n<pre class=\"brush:java\">WITH [null, \"null\", \"\", \"Mark\"] AS values\r\nUNWIND values AS value\r\nRETURN value, value = \"\" AS isEmpty, value &lt;&gt; \"\" AS isNotEmpty\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2564\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2564\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"value\"\u2502\"isEmpty\"\u2502\"isNotEmpty\"\u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502null   \u2502null     \u2502null        \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"null\" \u2502false    \u2502true        \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"\"     \u2502true     \u2502false       \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502\"Mark\" \u2502false    \u2502true        \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>null values seem to get filtered out for every type of equality match unless we explicitly check that a value \u2018is null\u2019.<\/p>\n<p>So how do we use this knowledge when we\u2019re parsing CSV files using Neo4j\u2019s <a href=\"https:\/\/neo4j.com\/developer\/guide-import-csv\/\">LOAD CSV<\/a> tool?<\/p>\n<p>Let\u2019s say we have a CSV file that looks like this:<\/p>\n<pre class=\"brush:bash\">$ cat nulls.csv\r\nname,company\r\n\"Mark\",\r\n\"Michael\",\"\"\r\n\"Will\",null\r\n\"Ryan\",\"Neo4j\"<\/pre>\n<p>$ cat nulls.csv name,company &#8220;Mark&#8221;, &#8220;Michael&#8221;,&#8221;&#8221; &#8220;Will&#8221;,null &#8220;Ryan&#8221;,&#8221;Neo4j&#8221;<\/p>\n<p>So none of the first three rows have a value for \u2018company\u2019. I don\u2019t have any value at all, Michael has an empty string, and Will has a null value. Let\u2019s see how LOAD CSV interprets this:<\/p>\n<pre class=\"brush:java\">load csv with headers from \"file:\/\/\/nulls.csv\" AS row\r\nRETURN row\r\n\u00a0\r\n\u2552\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2555\r\n\u2502\"row\"                            \u2502\r\n\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561\r\n\u2502{\"name\":\"Mark\",\"company\":null}   \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502{\"name\":\"Michael\",\"company\":\"\"}  \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502{\"name\":\"Will\",\"company\":\"null\"} \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502{\"name\":\"Ryan\",\"company\":\"Neo4j\"}\u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<p>We\u2019ve got the full sweep of all the combinations from above. We\u2019d like to create a <cite>Person<\/cite> node for each row but only create a <cite>Company<\/cite> node and associated \u2018WORKS_FOR\u2019 relationshp if an actual company is defined \u2013 we don\u2019t want to create a null company.<\/p>\n<p>So we only want to create a company node and \u2018WORKS_FOR\u2019 relationship for the Ryan row.<\/p>\n<p>The following query does the trick:<\/p>\n<pre class=\"brush:java\">load csv with headers from \"file:\/\/\/nulls.csv\" AS row\r\nMERGE (p:Person {name: row.name})\r\nWITH p, row\r\nWHERE row.company &lt;&gt; \"\" AND row.company &lt;&gt; \"null\"\r\nMERGE (c:Company {name: row.company})\r\nMERGE (p)-[:WORKS_FOR]-&gt;(c)\r\n\u00a0\r\nAdded 5 labels, created 5 nodes, set 5 properties, created 1 relationship, statement completed in 117 ms.<\/pre>\n<p>load csv with headers from &#8220;file:\/\/\/nulls.csv&#8221; AS row MERGE (p:Person {name: row.name}) WITH p, row WHERE row.company &lt;&gt; &#8220;&#8221; AND row.company &lt;&gt; &#8220;null&#8221; MERGE (c:Company {name: row.company}) MERGE (p)-[:WORKS_FOR]-&gt;(c) Added 5 labels, created 5 nodes, set 5 properties, created 1 relationship, statement completed in 117 ms.<\/p>\n<p>And if we visualise what\u2019s been created:<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-64068\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15.png\" alt=\"\" width=\"320\" height=\"320\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15.png 320w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15-150x150.png 150w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15-300x300.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/02\/graph-15-70x70.png 70w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/a><\/p>\n<p>Perfect. Perhaps this behaviour is obvious but it always trips me up so hopefully it\u2019ll be useful to someone else as well!<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.markhneedham.com\/blog\/2017\/02\/22\/neo4j-null-values-even-work\/\">Neo4j: How do null values even work?<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Mark Needham at the <a href=\"http:\/\/www.markhneedham.com\/blog\/\">Mark Needham Blog<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can lurk within. Let\u2019s start with an example that doesn\u2019t have a CSV file in sight. Consider the following list and my attempt to only return &hellip;<\/p>\n","protected":false},"author":134,"featured_media":191,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[349],"class_list":["post-64064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-neo4j"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Neo4j: How do null values even work? - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Neo4j: How do null values even work? - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-23T14:00:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mark Needham\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Needham\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html\"},\"author\":{\"name\":\"Mark Needham\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/fdb35381baa5059768d6788cfb685313\"},\"headline\":\"Neo4j: How do null values even work?\",\"datePublished\":\"2017-02-23T14:00:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html\"},\"wordCount\":573,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/neo4j-logo.jpg\",\"keywords\":[\"Neo4j\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html\",\"name\":\"Neo4j: How do null values even work? - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/neo4j-logo.jpg\",\"datePublished\":\"2017-02-23T14:00:12+00:00\",\"description\":\"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/neo4j-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/neo4j-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/02\\\/neo4j-null-values-even-work.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Neo4j: How do null values even work?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/fdb35381baa5059768d6788cfb685313\",\"name\":\"Mark Needham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g\",\"caption\":\"Mark Needham\"},\"sameAs\":[\"http:\\\/\\\/www.markhneedham.com\\\/blog\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Mark-Needham\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Neo4j: How do null values even work? - Java Code Geeks","description":"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html","og_locale":"en_US","og_type":"article","og_title":"Neo4j: How do null values even work? - Java Code Geeks","og_description":"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can","og_url":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2017-02-23T14:00:12+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg","type":"image\/jpeg"}],"author":"Mark Needham","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Mark Needham","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html"},"author":{"name":"Mark Needham","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/fdb35381baa5059768d6788cfb685313"},"headline":"Neo4j: How do null values even work?","datePublished":"2017-02-23T14:00:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html"},"wordCount":573,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg","keywords":["Neo4j"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html","url":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html","name":"Neo4j: How do null values even work? - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg","datePublished":"2017-02-23T14:00:12+00:00","description":"Every now and then I find myself wanting to import a CSV file into Neo4j and I always get confused with how to handle the various null values that can","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/neo4j-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2017\/02\/neo4j-null-values-even-work.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Neo4j: How do null values even work?"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/fdb35381baa5059768d6788cfb685313","name":"Mark Needham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g","caption":"Mark Needham"},"sameAs":["http:\/\/www.markhneedham.com\/blog\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Mark-Needham"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/64064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/134"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=64064"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/64064\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/191"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=64064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=64064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=64064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}