MERGE in FOREACH broken #1841

Closed
JnBrymn opened this Issue Jan 22, 2014 · 1 comment

Projects

None yet

2 participants

@JnBrymn
JnBrymn commented Jan 22, 2014

Starting from a blank database,

MERGE (a:User {id:1})
FOREACH (n IN [2,3,4] | 
  MERGE (b:User {id:n})
  MERGE (a)-[:FOLLOWS]->(b)
)

Results in "Query not prepared correctly!"

While

MERGE (a:User {id:1})
FOREACH (n IN [2,3,4] | 
  MERGE (b:User {id:n})
  CREATE UNIQUE (a)-[:FOLLOWS]->(b)
)

Successfully creates 4 connected nodes.

Contributor
cleishm commented Jan 24, 2014

Hi - thanks for letting us know. We'll make sure this is addressed in the next release.

@cleishm cleishm closed this Jan 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment