Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: error when create array property on relationship using apoc.create.relationship #210

Closed
johnymontana opened this issue Nov 11, 2016 · 0 comments

Comments

@johnymontana
Copy link
Contributor

johnymontana commented Nov 11, 2016

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant