Skip to content
Advertisement

Neo4j Python Driver Using Unwind with a list of dictionaries

I’m trying to batch merge to create multiple nodes. Using the below code,

JavaScript

However I am getting this error. Note I’m passing in a list of dictionaries.

JavaScript

I have no idea why this is happening any help is greatly appreciated.

Advertisement

Answer

Below is a working code on using UNWIND for a list of dictionaries. Please note that is it recommended to pass the value as a parameter rather than working on the value string in query.

JavaScript

sample result: enter image description here

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement