Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-30-2020 08:47 AM
Hi, I'm new to Neo4j and I'm currently having trouble in creating a node for nested query ({{}}).
So, firstly i need to import a file then create a node from this file and here is one of the code.
filename: reviewers.csv
So, i want to have the "details" to become first_name, last_name and age
and for "preferences" to become genres, production_company and production_country
Hopefully you can help me in solving this problem.
Thanks
11-01-2020 09:41 PM
Hi @kelvin159,
Welcome to the Neo4j community, Neo4j doesn't allow maps as properties (no sub-properties allowed, basically), and though lists are allowed as properties, they cannot be lists of maps (or lists of lists for that matter).
If you want to have the "details" to become first_name, last_name and age and for "preferences" to become genres, production_company and production_country, you will have to use the UNWIND
function. You can find more details here about the UNWIND
function.
Hope this helps you
Regards,
Taren
All the sessions of the conference are now available online