I am trying to insert an array of objects as a property in node. I tried
MERGE (ss:Label1 {sId: 12345})
ON MATCH SET ss.id = 14770746012, ss.setC = 1,ss.nl = [{id: 24, status: 0}]
ON CREATE SET ss.id = 14770746012, ss.setC = 1,ss.nl = [{id: 24, status: 0}]
If it starts, I get the following error:
Property values can only be of primitive types or arrays thereof
Whatever I tried with a nested array, it gave me the same error as above.
I studied in the Neo4j documentation that Neo4j cannot support "Nesting Property Values"
How to reach my requirement?
source
share