Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-08-2019 12:32 PM
Sample json:
{
"data": [
{
"file" : "1.txt",
"type" : "text"
},
{
"file" : "2.json",
"type" : "json"
},
{
"file" : "1.html",
"type" : "html"
}
]
}
I am trying to create 3 nodes with file and type as properties
I am using following query to create nodes in neo4j
WITH {json} AS document
UNWIND document.data AS data
FOREACH (node in data| CREATE(m:`member`) SET m = node )
I am getting following error when i use py2neo driver:
AttributeError: 'module' object has no attribute 'SyntaxError'
11-09-2019 01:48 AM
I think this should be the following:
WITH {json} AS document
UNWIND document.data AS data
CREATE(m:`member`) SET m = data
All the sessions of the conference are now available online