cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Don't know how to create a node for {{}}

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

1 REPLY 1

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