-
Notifications
You must be signed in to change notification settings - Fork 501
Closed
Description
CREATE (a)
CREATE (b)
WITH a,b
CALL apoc.create.relationship(a, "RELATED_TO", {roles: ["Kevin Lomax"]}, b) YIELD rel AS r
RETURN *
results in
Failed to invoke procedure `apoc.create.relationship`: Caused by: java.lang.IllegalArgumentException: [[Kevin Lomax]:scala.collection.convert.Wrappers$SeqWrapper] is not a supported property value
Similarly, if loading from JSON using apoc.load.json, trying to create a relationship with an array property using
CALL apoc.load.json("https://dl.dropboxusercontent.com/u/67572426/movie_graph.json") YIELD value AS row
WITH row, row.graph.nodes AS nodes
UNWIND nodes AS node
CALL apoc.create.node(node.labels, node.properties) YIELD node AS n
SET n.id = node.id
WITH row
UNWIND row.graph.relationships AS rel
MATCH (a) WHERE a.id = rel.startNode
MATCH (b) WHERE b.id = rel.endNode
CALL apoc.create.relationship(a, rel.type, rel.properties, b) YIELD rel AS r
RETURN *
results in
Failed to invoke procedure `apoc.create.relationship`: Caused by: java.lang.IllegalArgumentException: [[Kevin Lomax]:java.util.ArrayList] is not a supported property value
Metadata
Metadata
Assignees
Labels
No labels